Skip to content

Unable to use with nuxt3/vite #120

@JBFTP

Description

@JBFTP

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions