-
Notifications
You must be signed in to change notification settings - Fork 116
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: Cannot find module" or "TypeError: Cannot read property 'minify' of undefined" - temporary issues from webpack and terser #113
Comments
I had a similar issue with the build step. As a temporary fix disabling the minimizing of the functions works. Here's how to do that Webpack Configuration. It seems that other people are also having similar issues with the serve script too, see Issue #111 |
hmm. making a small sample repo to try to reproduce. thanks for filing EDIT: I can reproduce, and this is broken since v1.0.0 (v0.4.0 works). investigating |
based on how recent all these reports are coming up, this seems to be a bug in the |
confirmed. pls wait for them to resolve, or pin the resolution of terser for now: terser/terser#251 |
Thank you for replying so soon! My side project was held up because I couldn't find a solution to this. The |
yes because it uses an older webpack version. anyway, i think i'm gonna close this as its a upstream issue that should be fixed soon (angular, vue, react are all affected lol so we have company). cheers |
serve
or build
due to different errors
i think this has been resolved, ping me if not |
@sw-yx Yes! Both serve and build works with latest version. Thanks. |
When I run
yarn start:lambda
I get the following error:Seeing a previous similar issue, I tried to
build
it first to see if that would runserve
properly. But I get this error when I runyarn build:lambda
:Here is my
package.json
:netlify.toml
:src/generate.js
I'm running Node 8.10.0. When I was first testing Netlify functions last week with a similar set of files, it worked perfectly. Unfortunately I no longer have that code.
The text was updated successfully, but these errors were encountered: