Open boostie opened 2 years ago
This issue is related to Vite. Add to nuxt config under vite.
esbuildOptions: {
target: 'esnext'
},
build: {
target: 'esnext'
}
This issue is related to Vite. Add to nuxt config under vite.
esbuildOptions: { target: 'esnext' }, build: { target: 'esnext' }
This didn't help. So making the change without transpile yields the same results, while with transpile it gives another error which already present without those options, as mentioned above also.
Sourcemap for "/Users/Shared/data/projects/audacious/audacious-app-nuxt3/node_modules/@solana/buffer-layout/lib/Layout.js" points to missing source files
Do you happen to have an example config maybe? I am planning to put this into the cloud for reproduction.
This issue is related to Vite. Add to nuxt config under vite.
esbuildOptions: { target: 'esnext' }, build: { target: 'esnext' }
This didn't help. So making the change without transpile yields the same results, while with transpile it gives another error which already present without those options, as mentioned above also.
Sourcemap for "/Users/Shared/data/projects/audacious/audacious-app-nuxt3/node_modules/@solana/buffer-layout/lib/Layout.js" points to missing source files
Do you happen to have an example config maybe? I am planning to put this into the cloud for reproduction.
I've setup a repo with this working. It does includes Anchor as well.
You can look up the nuxt.config.ts
or just clone the repo and you should be good to go.
The define
and optimizeDeps.includes
params are only necessary if you are using Anchor.
Hi all,
I am creating a new issue as comments in the older closed issue are not relevant. Basically not able to run this mode as plugin in Nuxt3/Vite configuration. It doesn't work in "nuxi run dev" but builds fine and works, it has to work on dev also to actually enable the development.
Without any options in the config, I get the following errors:
If I add the following to configuration for Vite in nuxt.config
The Big Integer error disappears, but this prevents the whole app from loading. Anyone experienced the same thing?
WARN Sourcemap for "/Users/Shared/data/projects/audacious/audacious-app/node_modules/@solana/buffer-layout/lib/Layout.js" points to missing source files
Thanks