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
{{ message }}
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.
Added code for instantiation of worker in src/app/app.component.ts -> ng serve returns this error:
ERROR in ./node_modules/@ngtools/webpack/src!./src/app/simple-worker.ts
Module build failed: Error: @ngtools/webpack is being used as a loader but no `tsConfigPath` option nor AotPlugin was detected. You must provide at least one of these.
at Object.ngcLoader (/[path]/webpack-worker-loader-karma/node_modules/@ngtools/webpack/src/loader.js:617:19)
`
Had to set the tsConfigPath in webpack.config.js. So I ejected the project and changed the config:
ERROR in ./node_modules/@ngtools/webpack/src!./src/app/simple-worker.ts
Module build failed: Error: @ngtools/webpack is being used as a loader but no `tsConfigPath` option nor AotPlugin was detected. You must provide at least one of these.
at Object.ngcLoader (/[path]/webpack-worker-loader-karma/node_modules/@ngtools/webpack/src/loader.js:617:19)
I think I have to set the tsConfigPath for karma or set the worker loader correctly. But don't know how. Any ideas?
Im trying to setup an Angular project with Worker Loader. I am able to run the app but failed at running karma! Here is my approach:
Created project with
ng new webpack-worker-loader-karma
->ng serve
andng test
worksAdded webpack
worker-loader
to projectnpm i -D worker-loader
Created worker typescript file
src/app/simple-loader.ts
Created worker type definitions in
src/typings.d.ts
:Added code for instantiation of worker in
src/app/app.component.ts
->ng serve
returns this error:`
Had to set the tsConfigPath in webpack.config.js. So I ejected the project and changed the config:
npm start -> works!
npm test -> error:
I think I have to set the tsConfigPath for karma or set the worker loader correctly. But don't know how. Any ideas?
I published the project on github:
https://github.com/kappaj/webpack-worker-loader-karma
The text was updated successfully, but these errors were encountered: