Picture of Matt Leathes
Re: TypeError for trim when registering a plugin
by Matt Leathes - Monday, 1 July 2019, 1:26 PM
 

did you include a .bowerrc file as per these instructions?

Picture of Saral Sharma
Re: TypeError for trim when registering a plugin
by Saral Sharma - Friday, 11 October 2019, 9:13 AM
 

Hi Matt,

I got the same problem I included the .bowerrc.json as below but still got same error.

{
"directory": "src/plugins",
"registry": "http://adapt-bower-repository.herokuapp.com/"
}

 

Terminal commands are as below.

 

Microsoft Windows [Version 10.0.18362.295]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Saral\ADAPT_framework\sample_1>cd src/components/adapt-img-text-reveal

C:\Saral\ADAPT_framework\sample_1\src\components\adapt-img-text-reveal>adapt register
This will publish this plugin to undefined
Confirm name (adapt-img-text-reveal) y
error: Name must prefixed with 'adapt' and each word separated with a hyphen(-)
Confirm name (adapt-img-text-reveal)
Confirm repository URL (git://github.com/saralsharma/adapt-img-text-reveal.git)
Confirm framework (>=3.3)
Confirm Register now? (y)
TypeError: (source || "").trim is not a function

C:\Saral\ADAPT_framework\sample_1\src\components\adapt-img-text-reveal>

 


Picture of Matt Leathes
Re: TypeError for trim when registering a plugin
by Matt Leathes - Friday, 11 October 2019, 10:08 AM
 
I included the .bowerrc.json as below but still got same error.

That's probably because the file needs to be called .bowerrc not .bowerrc.json

Picture of rk d
Re: TypeError for trim when registering a plugin
by rk d - Tuesday, 22 October 2019, 10:27 PM
 

Hi Matt,

I'm too getting this error and could not be able to resolve it.

I have used adapt-cli to create the component and then in the folder contains all the necessary files as you mentioned above:

 

Picture of Matt Leathes
Re: TypeError for trim when registering a plugin
by Matt Leathes - Wednesday, 23 October 2019, 10:48 AM
 

could I get a link to the github repo containing these files?

Picture of rk d
Re: TypeError for trim when registering a plugin
by rk d - Wednesday, 23 October 2019, 10:21 PM
 

Here you go..

https://github.com/rDakarapu-oes/oes-text-comp

Picture of Matt Leathes
Re: TypeError for trim when registering a plugin
by Matt Leathes - Thursday, 24 October 2019, 10:27 AM
 

Thanks. I get same result at you. It's this issue, we're working on a fix - shouldn't take long.

Picture of rk d
Re: TypeError for trim when registering a plugin
by rk d - Thursday, 24 October 2019, 11:00 PM
 

Many thanks, looking forward to hear from you soon!!

Picture of Matt Leathes
Re: TypeError for trim when registering a plugin
by Matt Leathes - Friday, 25 October 2019, 3:41 PM
 

If you update your adapt-cli to v2.1.9 it should hopefully work now