ng2-STOMP-Over-WebSocket icon indicating copy to clipboard operation
ng2-STOMP-Over-WebSocket copied to clipboard

Error in angular 5

Open ghost opened this issue 7 years ago • 3 comments

Hello, actually I'm working in an project with angular 5, before that I worked with angular 4. But I decided upgraded angular. However the following errors appeared. Does someone has a ide about that?. Please I need your help.

ERROR in ./node_modules/ng2-stomp-service/dist/stomp.service.ts Module build failed: Error: /home/jose/projects/OpenMDM-FrontEnd-master/node_modules/ng2-stomp-service/dist/stomp.service.ts is not part of the compilation output. Please check the other error messages for details. at AngularCompilerPlugin.getCompiledFile (/home/jose/projects/OpenMDM-FrontEnd-master/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:649:23) at plugin.done.then (/home/jose/projects/OpenMDM-FrontEnd-master/node_modules/@ngtools/webpack/src/loader.js:467:39) at at process._tickCallback (internal/process/next_tick.js:188:7) @ ./node_modules/ng2-stomp-service/index.js 2:20-51 @ ./src/app/devices/devices.module.ts @ ./src/app/layout/shared/layout.module.ts @ ./src/app/app.module.ts @ ./src/main.ts @ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts

ghost avatar Dec 19 '17 23:12 ghost

@joseSierra94 add this into your tsconfig.json

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

nedpuganti avatar Jan 05 '18 04:01 nedpuganti

That is a hack and not a solution. The project should be packaged in the proper Angular package format. Are there any plans to do this?

trihex avatar Jan 29 '18 21:01 trihex

Any progress on this? Also, the hack works for running the app, but I didn't get it to work with karma and jasmine. Does anyone have a temporary workaround for testing?

lmyslinski avatar Feb 15 '18 10:02 lmyslinski