-
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
[BUG] Babel-loader - hidden dependency #66
Comments
Which version of Versions prior to |
and after installing
if I remove babel-loader - everething if fine |
hi Nikolay - can you remove node_modules and try again? we have babel loader in our dependencies... https://github.com/netlify/netlify-lambda/blob/master/package.json#L28 |
I have been getting this same issue on a new create-react-app and was wondering why it wasn't working until finally doing a My conclusion is that it might have to do with My error was more along the lines of: |
Thanks Carlos. I'm not too familiar with how babel-loader works to be honest - how can we "build it in" and make babel invisible for |
@sw-yx Seems as if it's a mixed bag. Ex. I'll get the
which leads me to believe it has to do with version mismatch as from what I've gathered If I delete the Im not as familiar with babel but I'll see what can be done to get it from messing up like so. Another thing I've noticed is using Yarn Plug and Play it gives the same error with no |
ok and what babel and babel-loader version are you working with? we use babel 7 and babel-loader 8. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Darn it, stalebot. This should be reopened. |
+1 on this |
Please reopen still not resolved. |
I can test this out later on but am unsure on how to troubleshoot aside from what I posted above. |
Had the same problem. Only following @CarlosMed instructions helped... |
alright i'll reopen this and will welcome PRs for it, thanks for feedback! not working on this myself yet due to other priorities |
I have a (hopefully) reproducible example here: Steps to reproduce:
Can someone please have a look? |
definitely having same issue, project is fullmoon.netlify.com |
this seemed to help |
good stuff. will still welcome PRs without actively looking at it right now. |
@sw-yx Will you be actively looking at it some time soon? Removing node_modules, yarn.lock or a combination of those didn't help. |
@codepunkt just run "yarn add babel-loader" for a quick fix. |
also having this issue |
Update: I figured it out. To anyone out there using react-static (older versions ~before v6.x.x) with netlify-lambda (v0.4.0), I needed to upgrade both my versions of react-static(now v7.x.x) and netlify lambda(now v1.4.5). Hi @sw-yx I had lambda
I upgraded to netlify-lambda:
|
after running command
./node_modules/.bin/netlify-lambda build functions-source/
I god
after installing
babel-loader
- it started to workhow on earth?
The text was updated successfully, but these errors were encountered: