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

ERROR in ./node_modules/guid-typescript/src/guid.ts #12

Open
ofirrifo opened this issue Jun 18, 2019 · 2 comments
Open

ERROR in ./node_modules/guid-typescript/src/guid.ts #12

ofirrifo opened this issue Jun 18, 2019 · 2 comments

Comments

@ofirrifo
Copy link

I'm getting this error when I'm executing npm run build in angular cli project

ERROR in ./node_modules/guid-typescript/src/guid.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
Error: /.../dev/management/mgmt-console/node_modules/guid-typescript/src/guid.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 (/.../dev/management/mgmt-console/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:834:23)
at /.../dev/management/mgmt-console/node_modules/@ngtools/webpack/src/loader.js:41:31
at processTicksAndRejections (internal/process/task_queues.js:89:5)

@gekkedev
Copy link
Contributor

gekkedev commented Jul 5, 2019

I haven't seen your import/require statement, but node_modules/guid-typescript/src/guid.ts definitely isn't the right path, as there is not src folder in the tarball.
Try importing from node_modules/guid-typescript/dist/guid.js instead.

@shalinsitwala
Copy link

Add "node_modules/guid-typescript/src/guid.ts" to your tsconfig.json "files" array

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

3 participants