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

(Parcel) ReferenceError: parser is not defined #302

Open
kahurangitama opened this issue Dec 3, 2019 · 6 comments
Open

(Parcel) ReferenceError: parser is not defined #302

kahurangitama opened this issue Dec 3, 2019 · 6 comments

Comments

@kahurangitama
Copy link

I has "react-phone-number-input": "^2.3.22" which is works well.
After update CircleCI starts to produce broken builds:

Screen Shot 2019-12-03 at 17 02 49

@kahurangitama
Copy link
Author

parcel-bundler@1.12.3

@kahurangitama
Copy link
Author

Temporarily set npm version hard to "react-phone-number-input": "2.3.22"

@catamphetamine
Copy link
Owner

I looked at the sources at path ./source/PhoneInput.js -> ./source/InputSmart.js -> input-format/source/template parser.js -> input-format/source/helpers.js, and there's no parser variable name.
Perhaps there's something with your node_modules.

@kahurangitama
Copy link
Author

I have one suggestion. Maybe bug is on Parcel side and it transform a filename template parser.js incorrectly. Like space in filename is confusing, I wonder how this files was called before?

@catamphetamine
Copy link
Owner

catamphetamine commented Dec 5, 2019 via email

@swba
Copy link

swba commented Dec 9, 2019

It's Parcel's issue, it incorrectly detects source maps. See parcel-bundler/parcel#2408 for example.

For time being, one can use --no-source-maps flag to turn source maps off (see https://github.com/parcel-bundler/parcel#--no-source-maps).

@catamphetamine catamphetamine changed the title 2.5.0 won't work with Parcel (Parcel) ReferenceError: parser is not defined Feb 5, 2020
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