-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Did 4.0.0+ become incompatible with awesome-typescript-loader & hot-reload? #449
Comments
Hi @SpencerGreene , that's strange. I'm quite sure that it works with all newer release of the plugin. Maybe there is just some small thing wrong ... @serverless-heaven/serverless-webpack-contributors any idea? |
I'm using About the error, the stack points to this: So Maybe you can try to use At first I'm not sure this problem is specific to |
I'm seeing very similar problems to what @SpencerGreene is seeing. |
FYI - I was able to get passed it by commenting the whole Maybe we should have a new option on I am using latest versions of everything, and using babel with ATL Package.json:
webpack.config.js:
|
One interesting thing I noticed about this problem is that the first hot reload succeeds. The failure happens after the hot-reload loads the new code. So I can get one (but only one) hot reload out of a debug session. Also, I tried @morgothulhu's workaround of commenting out that |
This issue and #465 are related. Both are caused by #319. I'm working on a fix for this whilst still supporting #319. I just need to write a few more tests and then I'll create a PR. The only issue I'm having as of right now is that the peerDependency for |
The PR will be part of the upcoming 5.3.0 release. I'll try to get the release schedule back to normal with the help of some people. |
Released with 5.3.0 |
This is a Bug Report (or misconfiguration on my side)
Description
I upgraded from serverless-webpack 2.2.3 to latest, and serverless-offline no longer hot-reloads serverless-offline in local. It throws an error "Unhandled rejection TypeError: Cannot read property 'watcher' of undefined" as further detailed below. Digging into awesome-typescript-loader, it appears that "watching.compiler.watchFileSystem.wfs" is undefined.
In triangulating versions, I see that this error is not thrown for serverless-webpack up to and including 3.1.2. It is thrown for 4.0.0 onward.
What did you expect should have happened?
When saving a change to the code of an endpoint, the running serverless-offline should recompile and continue without throwing error.
What was the config you used?
and tsconfig.json:
Additional Data
Also tried with serverless-webpack 5.2.0, webpack 4.19.1, and awesome-typescript-loader 5.2.1. After updating webpack.config to webpack4 style, it throws exactly the same error.
The text was updated successfully, but these errors were encountered: