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
I added a debug into node_modules/@open-wc/webpack-import-meta-loader.js Line 19: console.log("webpack-import-meta-loader.js: rootContext", this.rootContext)
npm run build
> [email protected] build
> vue-cli-service build
⠴ Building for production...webpack-import-meta-loader.js: rootContext /Users/derek/Sites/test-app
webpack-import-meta-loader.js: rootContext /Users/derek/Sites/test-app
⠧ Building for production...webpack-import-meta-loader.js: rootContext undefined
ERROR Failed to compile with 1 error 16:44:26
Syntax Error: Thread Loader (Worker 0)
Cannot read properties of undefined (reading 'length')
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
ERROR Build failed with errors.
Additional context
I found when this.rootContext is undefined, this.options.context was populated... ?!
Expected behavior
On Vue2, including the @open-wc/webpack-import-meta-loader as follows
vue create test-app cd test-app npm install --save @polkadot/api @open-wc/webpack-import-meta-loader
Configure
vue.config.js
in src/App.vue
Build the project
Actual Behavior
I added a debug into node_modules/@open-wc/webpack-import-meta-loader.js
Line 19: console.log("webpack-import-meta-loader.js: rootContext", this.rootContext)
Additional context
I found when
this.rootContext
is undefined,this.options.context
was populated... ?!I don't know if this 'hack' is appropriate, but it stops the error... :/
The text was updated successfully, but these errors were encountered: