I'm building a Dapp using Nuxt3 but I have a few errors when using packages:
- @coinbase/wallet-sdk
- Axeptio
window.axeptioSettings = {
clientId: '...',
cookiesVersion: '...',
}
;(function (d, s) {
var t: any = d.getElementsByTagName(s)[0],
e: any = d.createElement(s)
e.async = true
e.src = '//static.axept.io/sdk.js'
t.parentNode.insertBefore(e, t)
})(document, 'script')
I follwed this comment on github that allows Vite to get process
working perfectly in dev
but when building yarn build
and yarn start
I'm getting errors:
Buffer is not defined
- The axeptio's script is generating an error so I have to comment it ...
How can I get rid of these errors ? May I use Webpack instead of Vite ? (and how to disable Vite)
Thank you for your help
Okay, I solved it by adding
yarn add buffer