-
Notifications
You must be signed in to change notification settings - Fork 73
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
require is not a function #133
Comments
Hi @kevupton. Unfortunately, I'm not able to simulate this error. It seems to be a known issue with formidable, a sub-dependency of the JS driver. Would you mind trying their recommended workaround and reporting back, please? |
Hey @erickpintor somethign super weird is happening. I am going to list out all the details as I have no idea what is going on. So I added the fix they recommended: However webpack on its on requires me to remove the
otherwise it will error out, saying However when I remove that and run webpack with serverless. I receive the following error. So I add the So the conclusion is it seems to only break when I combine serverless and webpack. Which is unusal, as the webpack versions are the same, when I run it without serverless and with serverless. My webpack configuration object is as follows:
If you can point me in a direction I would be very much appreciated. This has me stumped for a few days now. |
So I have solved the problem, and it seemed to be caused by an outdated version of the serverless-webpack plugin. RIP |
I'm glad you've found the solution. Thanks for replying back to us. |
I am facing this issue and since I am using Netlify Dev, I don't think there is a way I can modify my |
@iamtekeste We will talk about this in our standup tomorrow and see what we can work out about it? |
For what it is worth I have found a workaround for it, turns out Netlify Dev/Netlify Lambda accepts a config param and you can pass it a custom |
I am receiving these errors when I deploy to serverless.
I am using webpack and typescript with faunadb.
Whenever I import faunadb and get query I get these errors.
And when i run get
require is not defined
. So serverless then defaults to an internal server error.The script goes as follows
The text was updated successfully, but these errors were encountered: