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

Error path for asset's path and error while building. #93

Closed
erguotou520 opened this issue Dec 7, 2017 · 4 comments
Closed

Error path for asset's path and error while building. #93

erguotou520 opened this issue Dec 7, 2017 · 4 comments

Comments

@erguotou520
Copy link

Here is my demo repo
There are two errors:

  1. The png file can't show in the page as it's src attribute is not right(missing prefix /dist/).
  2. Error occurred while building with command parcel build index.html:
parcel build index.html
🚨  /Users/erguotou/workspace/temp/simple-vue-parcel/index.js: Cannot read property 'start' of undefined
    at module.exports (/Users/erguotou/.nvm/versions/node/v8.9.2/lib/node_modules/parcel-bundler/node_modules/_babel-to-estree@0.0.2@babel-to-estree/babylon-to-espree/attachComments.js:56:42)
    at module.exports (/Users/erguotou/.nvm/versions/node/v8.9.2/lib/node_modules/parcel-bundler/node_modules/_babel-to-estree@0.0.2@babel-to-estree/babylon-to-espree/index.js:35:3)
    at exports.toEstree (/Users/erguotou/.nvm/versions/node/v8.9.2/lib/node_modules/parcel-bundler/node_modules/_babel-to-estree@0.0.2@babel-to-estree/index.js:9:3)
    at module.exports (/Users/erguotou/.nvm/versions/node/v8.9.2/lib/node_modules/parcel-bundler/src/transforms/uglify.js:10:39)
    at <anonymous>
@aantthony
Copy link

I'm having the same issue. You can do parcel build index.html --no-minify but it still won't work since it adds '/dist/' to every path in the outputted HTML, resulting in a 404.

@chee
Copy link

chee commented Dec 8, 2017

this is a duplicate of #8

you can get rid of your /dist/ by adding --public-url='/' to your build command

@erguotou520
Copy link
Author

The second issue was fixed in 0.0.3 with arg --no-minify. However the first issue about image src still exist.

@davidnagli
Copy link
Contributor

Fixed in master, should start working for everybody once we release all the new changes :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants