You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have three files which I will put below. When using the parcel watch src/index.html or parcel src/index.html commands, everything is fine and works great. However, using parcel build src/index.html fails with the following error:
❯ parcel build src/index.html
🚨 /Users/me/projectpathhere/src/index.js: Cannot read property 'start' of undefined
at module.exports (/Users/me/.config/yarn/global/node_modules/babel-to-estree/babylon-to-espree/attachComments.js:56:41)
at module.exports (/Users/me/.config/yarn/global/node_modules/babel-to-estree/babylon-to-espree/index.js:35:3)
at exports.toEstree (/Users/me/.config/yarn/global/node_modules/babel-to-estree/index.js:9:3)
at module.exports (/Users/me/.config/yarn/global/node_modules/parcel-bundler/src/transforms/uglify.js:10:39)
at <anonymous>
Also would like to point out that doing parcel build src/index.js fails, but parcel build src/style.css works.
And now the files:
src/index.html
<!doctype html><html><head><title>w o w</title></head><body><h1>WOW</h1><scriptsrc='./index.js'></script></body></html>
Hi,
I have three files which I will put below. When using the
parcel watch src/index.html
orparcel src/index.html
commands, everything is fine and works great. However, usingparcel build src/index.html
fails with the following error:Also would like to point out that doing
parcel build src/index.js
fails, butparcel build src/style.css
works.And now the files:
src/index.html
src/index.js
src/style.css
The text was updated successfully, but these errors were encountered: