You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
targets.forEach is not a function
TypeError: targets.forEach is not a function
at PathsPlugin.Object.keys.forEach.alias (D:\workstation\mdbootstrap pro\ng-admin-pro\node_modules\@ngtools\webpack\src\paths-plugin.js:53:21)
at Array.forEach (native)
at new PathsPlugin (D:\workstation\mdbootstrap pro\ng-admin-pro\node_modules\@ngtools\webpack\src\paths-plugin.js:49:28)
at Compiler.compiler.plugin (D:\workstation\mdbootstrap pro\ng-admin-pro\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:466:45)
at Compiler.applyPlugins (D:\workstation\mdbootstrap pro\ng-admin-pro\node_modules\tapable\lib\Tapable.js:61:14)
at Compiler.createNormalModuleFactory (D:\workstation\mdbootstrap pro\ng-admin-pro\node_modules\@angular\cli\node_modules\webpack\lib\Compiler.js:471:8)
at Compiler.newCompilationParams (D:\workstation\mdbootstrap pro\ng-admin-pro\node_modules\@angular\cli\node_modules\webpack\lib\Compiler.js:483:30)
at Compiler.compile (D:\workstation\mdbootstrap pro\ng-admin-pro\node_modules\@angular\cli\node_modules\webpack\lib\Compiler.js:491:23)
at compiler.applyPluginsAsync.err (D:\workstation\mdbootstrap pro\ng-admin-pro\node_modules\@angular\cli\node_modules\webpack\lib\Compiler.js:83:18)
at next (D:\workstation\mdbootstrap pro\ng-admin-pro\node_modules\tapable\lib\Tapable.js:202:11)
at Compiler.compilerInvalid (D:\workstation\mdbootstrap pro\ng-admin-pro\node_modules\webpack-dev-middleware\lib\Shared.js:161:5)
at next (D:\workstation\mdbootstrap pro\ng-admin-pro\node_modules\tapable\lib\Tapable.js:204:14)
at Compiler.compiler.plugin (D:\workstation\mdbootstrap pro\ng-admin-pro\node_modules\@angular\cli\node_modules\webpack\lib\CachePlugin.js:48:5)
at Compiler.applyPluginsAsyncSeries (D:\workstation\mdbootstrap pro\ng-admin-pro\node_modules\tapable\lib\Tapable.js:206:13)
at Watching._go (D:\workstation\mdbootstrap pro\ng-admin-pro\node_modules\@angular\cli\node_modules\webpack\lib\Compiler.js:48:17)
at Watching.compiler.readRecords.err (D:\workstation\mdbootstrap pro\ng-admin-pro\node_modules\@angular\cli\node_modules\webpack\lib\Compiler.js:40:9)
Desired behavior
I have a 3rd party library that has both a zip release as well as a npm release. I need to be able to easily switch between both, without having to change the import statements. So I need an alias, for which according to this comment I'm supposed to use the paths attribute in tsconfig.json.
The text was updated successfully, but these errors were encountered:
Versions
Repro steps
ng serve
Here's my complete tsconfig.json:
Observed behavior
Desired behavior
I have a 3rd party library that has both a zip release as well as a npm release. I need to be able to easily switch between both, without having to change the import statements. So I need an alias, for which according to this comment I'm supposed to use the paths attribute in tsconfig.json.
The text was updated successfully, but these errors were encountered: