You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Unfortunately, however, this will only fix the immediate problem. If you want to implement anything beyond the basic index.js file (I.e. use vue files), you will have to implement the vite vue plugin, but this results in more errors:
Add vite vue plugin for handling vue files to vite.config.js:
import vue from '@vitejs/plugin-vue'
export default {
plugins: [vue()],
Start the app:
npm run dev
Loading results in a blank page and the error:
browser-external:util:9 Uncaught Error: Module "util" has been externalized for browser compatibility. Cannot access "util.inherits" in client code.
at Object.get (browser-external:util:9:13)
at node_modules/levelup/lib/levelup.js (levelup.js:4:18)
at __require2 (chunk-ZQVQAL53.js?v=7e1ee517:19:50)
at node_modules/level-packager/level-packager.js (level-packager.js:3:17)
at __require2 (chunk-ZQVQAL53.js?v=7e1ee517:19:50)
at node_modules/level/browser.js (browser.js:1:18)
at __require2 (chunk-ZQVQAL53.js?v=7e1ee517:19:50)
at index.js:10:19
The vite example does not run. It errors with big number literal errors.
https://github.com/ipfs-examples/js-ipfs-examples/tree/master/examples/browser-vite
The text was updated successfully, but these errors were encountered: