microsoft / monaco-editor-webpack-plugin

Moved to https://github.com/microsoft/monaco-editor
482 stars 98 forks source link

How to work with webpack 3. Thanks. #56

Closed wufeng87 closed 4 years ago

wufeng87 commented 5 years ago

I got this error, when I use npm start to start my app. webpack version: "3.8.1", "monaco-editor": "^0.15.6", "monaco-editor-webpack-plugin": "^1.7.0",

hjm-mac:react hjm$ npm start

> educoder@0.1.0 start /Users/hjm/Documents/code/educode/educoder/eduplus2/public/react
> node scripts/start.js

Failed to compile.

Cannot read property 'output' of undefined

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! educoder@0.1.0 start: `node scripts/start.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the educoder@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/hjm/.npm/_logs/2019-01-11T06_34_13_165Z-debug.log
juhana commented 5 years ago

The error message means that the plugin wasn't installed correctly in webpack.config.js.

alexdima commented 4 years ago

I am sorry, but I really don't know what could be the problem. Have you tried webpack 4?