Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use with nuxt3/vite #120

Open
JBFTP opened this issue Oct 28, 2022 · 0 comments
Open

Unable to use with nuxt3/vite #120

JBFTP opened this issue Oct 28, 2022 · 0 comments

Comments

@JBFTP
Copy link

JBFTP commented Oct 28, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant