Skip to content
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

Compile error with Angular 6 #12

Open
sgrillon14 opened this issue Jul 4, 2018 · 5 comments
Open

Compile error with Angular 6 #12

sgrillon14 opened this issue Jul 4, 2018 · 5 comments

Comments

@sgrillon14
Copy link

ERROR in ./node_modules/ng2-stomp-service/dist/stomp.service.ts
Module build failed: Error: C:\workspace\spring-boot-angular2-stomp\src\main\ng\node_modules\ng2-stomp-service\dist\stomp.service.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library
repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (C:\workspace\spring-boot-angular2-stomp\src\main\ng\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:709:23)
at plugin.done.then (C:\workspace\spring-boot-angular2-stomp\src\main\ng\node_modules@ngtools\webpack\src\loader.js:41:31)
at process._tickCallback (internal/process/next_tick.js:68:7)

@sgrillon14
Copy link
Author

sgrillon14 commented Jul 4, 2018

I add this into your tsconfig.json

"include": [
"src/**/*",
"node_modules/ng2-stomp-service/dist/stomp.service.ts"
]

but now I have

ERROR in ./node_modules/stompjs/lib/stomp-node.js
Module not found: Error: Can't resolve 'net' in 'C:\workspace\spring-boot-angular2-stomp\src\main\ng\node_modules\stompjs\lib'

@elunaNeo
Copy link

elunaNeo commented Sep 4, 2018

I'm facing the very same error right now when trying to stompjs.

@dmorton2297
Copy link

If there was any resolution to this issue, please post.

@TomasTopinka
Copy link

Same problem here :(

@NSnietol
Copy link

Same problema,
Angular CLI: 8.2.1
Node: 10.15.3
OS: win32 x64
Angular:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants