JoshDSommer / nativescript-ngx-slides

A NativeScript + Angular module for to add a slides component to your mobile app
Other
45 stars 34 forks source link

Error: moduleId should be a string in "SlidesComponent" #65

Closed wanpeng2008 closed 6 years ago

wanpeng2008 commented 6 years ago

I install this plugin and build my app with --bundle option. A build error is thrown out:

JS:ERROR Error: Uncaught (in promise): Error: moduleId should be a string in "SlidesComponent". See https://goo.gl/wIDDiL for more information.
JS: If you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.
JS: Error: moduleId should be a string in "SlidesComponent". See https://goo.gl/wIDDiL for more information.
JS: If you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.
wanpeng2008 commented 6 years ago

I replaced all "moduleId:module.id" with "moduleId:module.id.toString()" in the folder "./node_modules/nativescript-ngx-slides". But the error is still there. Any Suggestions?

=========

Oh, it works. Sorry i missed one to replace.

JoshDSommer commented 6 years ago

@wanpeng2008 Awesome! I'm going to close this issue, but if you have any more problems let me know.

ezequielzacca commented 4 years ago

I got this error too. I think it needs to be fixed on the source code