I have setup the drizzle with vuejs 2 using official documentation here.
When I try running the project with yarn serve
I am getting the following errors
For the fix, I tried installing all the packages. Unfortunately it didn't work for me
The solution to this is pretty simple.
Install the packages
yarn add -D buffer process stream-browserify os-browserify stream-http https-browserify url
Configure the webpack in the vue.config.js file
resolve: {
fallback: {
http: require.resolve("stream-http"),
https: require.resolve("https-browserify"),
crypto: require.resolve("crypto-browserify"),
stream: require.resolve("stream-browserify"),
os: require.resolve("os-browserify/browser"),
url: require.resolve("url"),
assert: require.resolve("assert"),
},
},
Start the vuejs dev server
yarn serve