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

Cannot read property 'length' of undefined #2957

Closed
wangyajundev opened this issue Apr 25, 2019 · 6 comments

Comments

Projects
None yet
5 participants
@wangyajundev
Copy link

commented Apr 25, 2019

Cannot read property 'length' of undefined
at lineCounter (/Users/www/repository/parcel-demo/node_modules/_parcel-bundler@1.12.3@parcel-bundler/src/utils/lineCounter.js:3:30)
at JSPackager.writeModule (/Users/www/repository/parcel-demo/node_modules/_parcel-bundler@1.12.3@parcel-bundler/src/packagers/JSPackager.js:127:60)
at

@quasicomputational

This comment has been minimized.

Copy link

commented Apr 25, 2019

Looks very much like #1158.

@wangyajundev

This comment has been minimized.

Copy link
Author

commented Apr 25, 2019

I deleted node _ module, redownloaded it, and reported it wrong

@cloudever

This comment has been minimized.

Copy link

commented Apr 25, 2019

Same issue. I've found some thing

image

v1.12.3
Using typescript with lerna/yarn workspaces, so node_modules hoisted in the root directory

@joshuazmiller

This comment has been minimized.

Copy link

commented Apr 26, 2019

FYI to solve I deleted .cache directory. Ran parcel src/index.html -t node, stopped running, and then ran my regular parcel src/index.html.

@wangyajundev

This comment has been minimized.

Copy link
Author

commented Apr 26, 2019

@joshuazmiller you are right.

@Shuunen

This comment has been minimized.

Copy link

commented May 13, 2019

Deleting .cache folder worked on my side, without -t node restart thing

Thanks @joshuazmiller 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.