Closed Carson-czl closed 3 years ago
Hello @Carson-czl. Please provide a online reproduction by codesandbox or a minimal GitHub repository. Issues labeled by need reproduction
will be closed if no activities in 3 days.
path
module only exsits on nodejs, it dose not exist on browser environment.
If you want to use the path.resolve in browser,try browser-resolve!
You can see this relative comment
path
module only exsits on nodejs, it dose not exist on browser environment. If you want to use the path.resolve in browser,try browser-resolve! You can see this relative comment
那其他模块怎么处理
path
module only exsits on nodejs, it dose not exist on browser environment. If you want to use the path.resolve in browser,try browser-resolve! You can see this relative comment
thank you! I'll try (感谢大佬)
path
module only exsits on nodejs, it dose not exist on browser environment. If you want to use the path.resolve in browser,try browser-resolve! You can see this relative comment那其他模块怎么处理
How to deal with other node side modules
path
module only exsits on nodejs, it dose not exist on browser environment. If you want to use the path.resolve in browser,try browser-resolve! You can see this relative comment那其他模块怎么处理
How to deal with other node side modules
you can use rollup-plugin-polyfill-node or https://github.com/ionic-team/rollup-plugin-node-polyfills
path
module only exsits on nodejs, it dose not exist on browser environment. If you want to use the path.resolve in browser,try browser-resolve! You can see this relative comment那其他模块怎么处理
How to deal with other node side modules
you can use rollup-plugin-polyfill-node or https://github.com/ionic-team/rollup-plugin-node-polyfills
thks
Describe the bug
import path from 'path' path exists, but empty object has no method to cause path.resolve error. But in vite.config.ts There is path.resolve
APP.vue
package.json
vite.config.ts
result code
https://codesandbox.io/s/agitated-chaplygin-tltqe?file=/src/App.vue Using the same code on vite can cause errors