-
Notifications
You must be signed in to change notification settings - Fork 27
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
agm-direction.module.ts is missing from the TypeScript #9
Comments
Please include it in tsconfig.app.json. {
"include": [
"../src/*",
"../node_modules/agm-direction/*"
]
} |
I have the same problem
What i have to do to use this library? Thanks @explooosion |
Hola! @Toso82
|
I have the same issue as @Toso82 the path is not incorrect. My issue stems from me using the package in a nested component in an existing project. However, when I built a sample app it worked!! Stackblitz I can't seem to figure out how to resolve the issue.
Is there a proper fix coming for this? |
Fixed my issue with this line modification in tsconfig.app.json:
|
@alobban Thanks for all your help. 🙂 |
Hello, everyone! 🙂 I have rebuild the project with generator-angular2-library, and it seems to be ok. InstallPlease install the latest version npm install agm-direction@0.4.0 or npm install agm-direction@latest SettingPlease don't set anything in Test Environment$ ng -v
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 1.7.3
Node: 8.10.0
OS: win32 x64
Angular: 5.2.9 DocumentThe generator-angular2-library also generates the document. |
How can i solve this error,
ERROR in ./node_modules/agm-direction/src/agm-direction.module.ts
Module build failed: Error: /Users/gajendra/Documents/Demo/google-map-tracking/node_modules/agm-direction/src/agm-direction.module.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 (/Users/gajendra/Documents/Demo/google-map-tracking/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:663:23)
at plugin.done.then (/Users/gajendra/Documents/Demo/google-map-tracking/node_modules/@ngtools/webpack/src/loader.js:467:39)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
@ ./node_modules/agm-direction/index.js 6:9-46
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts
The text was updated successfully, but these errors were encountered: