-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected value 'SamplePipe' declared by the module 'AppModule' #18
Comments
Im having the same issue with edit: i just published my module to npm, and it still doesn't work... |
This seems to be an issue related to Webpack. Angular CLIIf you use an Angular CLI generated project, you can resolve this manually by editing modules: [path.resolve(projectRoot, 'node_modules')] You can read more details here. There seems to be a fix in the Angular CLI repository so a recent version of Angular CLI will probably fix this automatically. Angular 2 Webpack StarterIf you are using Angular 2 Webpack Starter (instead of an Anguler CLI project) you can resolve it by changing: modules: [helpers.root('src'), 'node_modules'] to: modules: [helpers.root('src'), helpers.root('node_modules')] in your Webpack configuration file. You can read more details here. Can you try and see if this works for you? Thanks! |
Hi all, Any idea how someone not using webpack (and using SystemJS instead) can solve that issue? Cheers! |
@sachanacar — Have you found a solution yet for SystemJS? Thanks! |
Version 8.1.0 of this generator has been released, aligning with the latest Angular Package Format, which should solve this issue. Feel free to re-open and report back if you experience issues with v8.1.0. Thanks again for your great feedback! 👍 |
I have an issue with "Unexpected value 'SampleModule' imported by the module 'AppModule'"(got here from #22) with version 11.1.0. |
When working on new Angular2.0 project (check project's package.json), it gives the error:
Project's dependencies:
App Module's code:
I didn't change anything in the files that were generated using the generators. Just used "npm link" to register locally, and then linked to the test project to test the library in development environment.
The text was updated successfully, but these errors were encountered: