Error with sha3.js when deploying to vercel? #3654
Unanswered
illogicsNFT
asked this question in
Q&A
Replies: 2 comments
-
Is Vercel a bundler? For legacy libraries (which looks like In v6, the dependency libraries selected are all modern JS libraries, so bundling works much more smoothly. ;) |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've solved the same problem by adding the rollup commonjs plugin. I'm using Vite, and this is how to add it: // vite.config.ts
import commonjs from '@rollup/plugin-commonjs';
export default defineConfig({
plugins: [
commonjs(),
],
}); I'm also using rollup node polyfills, and it's crucial to define commonjs plugin before the node polyfills plugin. Example: // vite.config.ts
import commonjs from '@rollup/plugin-commonjs';
import rollupNodePolyFill from 'rollup-plugin-node-polyfills';
export default defineConfig({
plugins: [
commonjs(),
rollupNodePolyFill(),
],
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Ethers Version
^5.7.1
Search Terms
sha3.js, lib.esm
Describe the Problem
No errors occur when developing locally, however the follow error occurs when trying to deploy my site using vercel.
Code Snippet
No response
Contract ABI
No response
Errors
Environment
No response
Environment (Other)
No response
Beta Was this translation helpful? Give feedback.
All reactions