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

Local development using wrangler preview -- watch #16

Open
ancs21 opened this issue Nov 12, 2019 · 4 comments
Open

Local development using wrangler preview -- watch #16

ancs21 opened this issue Nov 12, 2019 · 4 comments

Comments

@ancs21
Copy link

ancs21 commented Nov 12, 2019

Hello @signalnerve ,

I working this repo and worker, need local development to build, testing.
When use wrangler preview -- watch, this is don't working.

Thanks.

@Andrejs1979
Copy link

Same here :(
Webpack is faling

@Andrejs1979
Copy link

Andrejs1979 commented Dec 6, 2019

Found the problem. Wrangler generates it's TOML without a reference to the Webpack config. Need to add that line manually. Please amend your docs.

PS What's the point in this Apollo deployment if you can't even connect to mongo since Cloudflare Workers don't support TCP connections? To know it beforehand you have to RTFM in full. Very disappointed, lots of time wasted too.

@ancs21
Copy link
Author

ancs21 commented Dec 6, 2019

@Andrejs1979 nice.
Do you share your config file?
Thanks.

@Andrejs1979
Copy link

Andrejs1979 commented Dec 11, 2019

Here's the other discussion on this topic: cloudflare/wrangler-legacy#296

Config Example:
https://developers.cloudflare.com/workers/tooling/wrangler/webpack/

type = "webpack"
name = "my-worker"
account_id = "12345678901234567890"
workers_dev = true
webpack_config = "webpack.config.js"

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