-
Notifications
You must be signed in to change notification settings - Fork 74
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
__webpack_require__(...) is not a function #186
Comments
@PatrikElfstrom what driver version are you using? |
I am using v2.9.2 |
Thanks for reporting this. we will look into it on Monday. |
@PatrikElfstrom I'm using
Can you share with us more details about the tools you are using? |
I think the issue might be that I’m transpiling from es6 to es5.
I’ll look into it in a few hours.
On Mon, 21 Oct 2019 at 16:37, Bruno Quaresma ***@***.***> wrote:
@PatrikElfstrom <https://github.com/PatrikElfstrom> I'm using netlify cli
and faunadb v.2.9.2 and the following code is working good.
const { Client, query: q } = require('faunadb')
const db = new Client({ secret: '...' })
exports.handler = async event => {
if (event.httpMethod !== 'POST') {
return { statusCode: 405, body: 'Method Not Allowed' }
}
const credentials = JSON.parse(event.body)
try {
const { user, token } = await db.query(
q.Let(...)
)
return {
statusCode: 200,
body: JSON.stringify({ ... }),
}
} catch (error) {
return {
statusCode: 500,
body: JSON.stringify({ ... })
}
}
}
Can you share with us more details about the tools you are using?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#186?email_source=notifications&email_token=AADZVNHZZV34FAISBLRSNXDQPW5CFA5CNFSM4JCSNRXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB2RPZA#issuecomment-544544740>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADZVNCXL4RO4LX62OW25PDQPW5CFANCNFSM4JCSNRXA>
.
--
// Patrik
|
@BrunoQuaresma Similar error with your code just This is the repo: https://github.com/PatrikElfstrom/schnitzellunch I've tried with node v10.16.3 and v12.13.0 but the same error.
(And placing |
I am having this issue also. I spent all day trying to solve it. |
we are cutting 2.9.3 in the next hour or two. For now use the 2.9.3-pre1 prerelease. it is identical to the actual release |
@danieltodonnell - I really appreciate the responsiveness. Thank you! |
Hello everyone, I appreciate your patience with this matter. JS Drivers v2.9.3 have been released This should hopefully address your issues, but if not, please open an issue and we will address it asap (usually the same or next day). Thank you! |
@danieltodonnell - worked like a charm. I did my first transaction too my FaunaDB. |
I'm running FaunaDB in a Netlify Function built with Webpack and I get this error:
Error during invocation: TypeError: __webpack_require__(...) is not a function
This is because of a bug in
isomorphic-unfetch
: developit/unfetch#122The text was updated successfully, but these errors were encountered: