Closed pr0menade closed 6 years ago
will try angular cli and let you know by today or tomorrow, pls stay tuned
I got this:
ERROR in ./node_modules/squeezebox/index.ts Module build failed: Error: {My Path}\node_modules\squeezebox\index.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 ({my path}\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:674:23) at plugin.done.then ({my path}\node_modules\@ngtools\webpack\src\loader.js:467:39) at process._tickCallback (internal/process/next_tick.js:109:7)
PS: This solved my problem, maybe it will help.
https://github.com/angular/angular-cli/issues/9142
I added this to the tsconfig.json so that it could reach the squeezebox ts. After that i bumped again into the exact same problem, with my main.ts and polyfill.ts files, so i added ./src/*. and it worked.
"include": [
"./src/**/*",
"./node_modules/squeezebox/**/*",
]
@mszpereira thanks working on integrating angular package format, stay tuned guys @pr0menade
please check squeezebox 1.4.0, now in order to import the module you have to do :
import {SqueezeBoxModule} from 'squeezebox/dist';
Angular CLI - 1.6.0 Angualr - ~5.1.0
app.module.ts
Can you, please add additional information how to add Squeezebox to Angular CLI properly.