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
Hi, I am trying to use node-sp-auth with nuxt/vite. I am fairly new to node, but it seems like node-sp-auth may be using older node methods that vite does not like. I have tried using vite alias to load the ts version and js version of node-sp-auth, but they give different errors-- for ts Module "util" has been externalized for browser compatibility. Cannot access "util.inherits" in client code. it is similar for the js file, but it is 'stream' / 'stream.Readable' respectively. Any ideas on how I can get past this?
To reproduce, start a new nuxt3 project npx nuxi init nuxt-app, install dependencies yarn install and add node-sp-auth yarn add node-sp-auth then start the server.
The text was updated successfully, but these errors were encountered:
Hi, I am trying to use node-sp-auth with nuxt/vite. I am fairly new to node, but it seems like node-sp-auth may be using older node methods that vite does not like. I have tried using vite alias to load the ts version and js version of node-sp-auth, but they give different errors-- for ts
Module "util" has been externalized for browser compatibility. Cannot access "util.inherits" in client code.
it is similar for the js file, but it is 'stream' / 'stream.Readable' respectively. Any ideas on how I can get past this?To reproduce, start a new nuxt3 project
npx nuxi init nuxt-app
, install dependenciesyarn install
and add node-sp-authyarn add node-sp-auth
then start the server.The text was updated successfully, but these errors were encountered: