-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4acbda8
commit c8a319f
Showing
1 changed file
with
119 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c8a319f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having problem on importing the module, compilation errors I had are as follows. Please help
ERROR in ./
/agm-direction/src/agm-directions.directive.ts/agm-direction/src/agm-direction.module.ts 10:33-70Module build failed: Error: Final loader didn't return a Buffer or String
at runLoaders (D:\DEVELOP\TimeanywhereExt2\TimeanywhereExt2\node_modules\webpack\lib\NormalModule.js:201:46)
at D:\DEVELOP\TimeanywhereExt2\TimeanywhereExt2\node_modules\loader-runner\lib\LoaderRunner.js:370:3
at iterateNormalLoaders (D:\DEVELOP\TimeanywhereExt2\TimeanywhereExt2\node_modules\loader-runner\lib\LoaderRunner.js:211:10)
at iterateNormalLoaders (D:\DEVELOP\TimeanywhereExt2\TimeanywhereExt2\node_modules\loader-runner\lib\LoaderRunner.js:218:10)
at D:\DEVELOP\TimeanywhereExt2\TimeanywhereExt2\node_modules\loader-runner\lib\LoaderRunner.js:233:3
at context.callback (D:\DEVELOP\TimeanywhereExt2\TimeanywhereExt2\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at runMicrotasksCallback (internal/process/next_tick.js:64:5)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
@ ./
@ ./~/agm-direction/index.js
@ ./angularApp/app/app.module.ts
@ ./angularApp/main.ts
c8a319f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, what is your package version?
(node, angular, agm-direction)
Step 1
Please install the latest version of
agm-direction
.Step 2
Please include it in tsconfig.app.json
c8a319f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your response @explooosion.
The version is "version": "0.3.5"
I had done the step2 in file tsconfig.json not tsconfig.app.json, and still had the issue.
By the way, in the system I am working on, I do not see file tsconfig.app.json
c8a319f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure whether my understanding is correct.
Maybe
agm-direction
isn't the main problem.Please check the
typescript
version inpackage.json
Do you use 3rd party libraries/frameworks in your projects?
Please check this discussion:
Module build failed: Error: Final loader didn't return a Buffer or String
Final loader didn't return a Buffer or String
Hope it is useful for you 🙂