-
-
Notifications
You must be signed in to change notification settings - Fork 607
Closed
Labels
Description
Describe the bug
I was trying to integrate rich text editor , and came across this amazing package Blocknote , reduces more than half of the work required with tip tap
But When i added webpack 5 to my application
It started giving below error
TypeError: use_prefers_color_scheme__WEBPACK_IMPORTED_MODULE_2__ is not a function

Package.json
"dependencies": {
"webpack": "^5.92.1",
"webpack-cli": "^5.1.4",
"@blocknote/core": "^0.13.5",
"@blocknote/mantine": "^0.13.5",
"@blocknote/react": "^0.13.5",
"@babel/core": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/preset-react": "^7.24.7",
}
webpack.config
entry: 'app/app.js',
output: {
path: path.resolve(process.cwd(), 'build'),
publicPath: '/',
filename: '[name].js',
chunkFilename: '[name].chunk.js',
},
Related issue maybe ? devforth/painterro#123 , webpack/webpack#12675
- Node version: 20
- Browser: Chrome
Thank you in advance for your help!