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

HMR presumes index.js in current folder #77

Closed
appsforartists opened this issue Nov 4, 2016 · 4 comments
Closed

HMR presumes index.js in current folder #77

appsforartists opened this issue Nov 4, 2016 · 4 comments

Comments

@appsforartists
Copy link

appsforartists commented Nov 4, 2016

  Pundle:Error Error: ENOENT: no such file or directory, stat '~/Projects/pundle/packages/test/index.js'

if I run ./devServer.js --entry --hmr ./src/index.js. cding into src first fixes it.

@steelbrain
Copy link
Owner

You might want to run ./devServer.js --entry ./src/index.js --hmr instead, notice the ordering of ---key value

@appsforartists
Copy link
Author

TypeError: this.config.pundle.entry.unshift is not a function
    at new Server (~/Projects/pundle/packages/dev/lib/index.js:49:32)
    at Object.<anonymous> (~/Projects/pundle/packages/test/devServer.js:35:16)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Function.Module.runMain (module.js:575:10)
    at startup (node.js:160:18)
    at node.js:456:3

😢

@steelbrain
Copy link
Owner

Oh boy, Pundle@1 might not be the most stable release ever. I can assure you tho that the upcoming v2 will be very stable, and precitable and will even have a Pundleconfig.js so you don't have to write the dev server logic in each project

@steelbrain
Copy link
Owner

Fixed in Pundle v2Alpha1

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

2 participants