Monaco editor problem #13114
Unanswered
danielpaz6
asked this question in
Help
Replies: 1 comment 1 reply
-
I was also unable to run that example as is. As a workaround I had to install const withCSS = require('@zeit/next-css');
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
module.exports = withCSS({
webpack: function (config) {
config.plugins.push(
new MonacoWebpackPlugin({
// Add languages as needed...
languages: ['javascript', 'typescript'],
filename: 'static/[name].worker.js',
})
);
config.module.rules.push({
test: /\.(eot|woff|woff2|ttf|svg|png|jpg|gif)$/,
use: {
loader: 'url-loader',
options: {
limit: 100000,
name: '[name].[ext]',
},
},
});
return config;
},
}); Still looking into why 🤔 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I just saw a new example from yesterday about Monaco Editor:
https://github.com/zeit/next.js/tree/canary/examples/with-monaco-editor
but when I try to install that, it doesn't work for me, saying:
And I wondered if anyone else gets this error too.
Beta Was this translation helpful? Give feedback.
All reactions