Closed a6965921 closed 2 years ago
Yes, that's expected in webpack 5. You can fix it by following the advice in that error message.
https://github.com/Birch-san/box2d-wasm/issues/26#issuecomment-814328442
how to use webpack Do not compile when referencing JS
I don't understand the question; what's the error message?
can you user vue-cli(vue2.X) write demo Put it in GitHub I need to refer to it
I've successfully ran with vue3, here is my vue.config.js
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
// workaround for box2d-wasm
configureWebpack: config => {
Object.assign(config.resolve.fallback = { fs: false, path: false })
}
})