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

Issues with Parcel bundler #160

Closed
palfrey opened this issue Nov 18, 2020 · 2 comments
Closed

Issues with Parcel bundler #160

palfrey opened this issue Nov 18, 2020 · 2 comments

Comments

@palfrey
Copy link

palfrey commented Nov 18, 2020

Describe the problem

Trying to build an app with auth0-react and Parcel got me the following warning:
Could not load existing sourcemap of "../node_modules/@auth0/auth0-react/dist/auth0-react.esm.js". Not sure if there's something that needs changing in Parcel config, or if there's a packaging issue from the auth0-react end?

What was the expected behavior?

No warnings!

Reproduction

I've got a Typescript project and the root file I'm telling Parcel to build from has the line import { Auth0Provider, AppState } from '@auth0/auth0-react'

Environment

  • auth0-react: 1.2.0
@adamjmcgrath
Copy link
Contributor

Hi @palfrey

This is a known issue with using spa-js and Parcel 1.x, caused by parcel-bundler/parcel#2408

There's a couple of workarounds on auth0/auth0-spa-js#427 namely using parcel with --no-source-maps as described in parcel-bundler/parcel#2408 or using parcel@2

@dotansimha
Copy link

We had that issue with Vite, the solution was to avoid using globals: {} in vite.config.ts

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

3 participants