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 watch fails #416

Closed
benhutton opened this issue Dec 27, 2017 · 4 comments
Closed

🐛parcel watch fails #416

benhutton opened this issue Dec 27, 2017 · 4 comments
Labels

Comments

@benhutton
Copy link

🎛 Configuration (.babelrc, package.json, cli command)

{
  "presets": [
    ["env", {
      "targets": {
        "browsers": "> 5%",
        "uglify": true
      },
      "useBuiltIns": true
    }]
  ],

  "plugins": [
    "syntax-dynamic-import",
    "transform-object-rest-spread",
    ["transform-class-properties", { "spec": true }]
  ]
}

$ node_modules/.bin/parcel watch app/client/entry.html --out-dir public/dist

🤔 Expected Behavior

When I save a file, it should recompile successfully.

😯 Current Behavior

When I save a file, I get the following error:

$ node_modules/.bin/parcel watch app/client/entry.html --out-dir public/dist
🚨  Cannot read property 'type' of undefined
    at Bundler.createBundleTree (/home/ben/projects/dg/node_modules/parcel-bundler/src/Bundler.js:373:52) 
    at Bundler.createBundleTree (/home/ben/projects/dg/node_modules/parcel-bundler/src/Bundler.js:412:12) 
    at Bundler.createBundleTree (/home/ben/projects/dg/node_modules/parcel-bundler/src/Bundler.js:412:12) 
    at Bundler.buildQueuedAssets (/home/ben/projects/dg/node_modules/parcel-bundler/src/Bundler.js:245:23)                                                                                                           
    at <anonymous>                                   
    at process._tickCallback (internal/process/next_tick.js:188:7) 

💁 Possible Solution

I wonder if this is related to #294 in some way? I definitely have a setup that is affected by that bug.

🔦 Context

I am trying to get HMR working. When I run parcel watch, it does the initial compile successfully, but explodes once I save.

🌍 Your Environment

Software Version(s)
Parcel 1.3.1
Node 8.9.3
npm/Yarn 5.5.1/1.2.1
Operating System Ubuntu 17.10
@devongovett
Copy link
Member

#294 should be fixed by #380. Can you re-test locally using the parcel master branch since the fix isn't released to npm yet?

@devongovett
Copy link
Member

Now released in v1.4.0. Closing this issue for now, but please reopen if you test and it is still a problem in the latest version.

@benhutton
Copy link
Author

@devongovett unfortunately, #380 / v1.4.1 did not fix this (though it did fix other problems I was having, so thank you!). Can you please re-open? And let me know what else I should try to debug (or to help others help me debug)?

@DeMoorJasper DeMoorJasper reopened this Jan 2, 2018
@benhutton
Copy link
Author

Not seeing this anymore, so closing.

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

No branches or pull requests

4 participants