Skip to content
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

Throwing run time error . #3679

Closed
6 tasks
SupriyaGo opened this issue Jun 5, 2021 · 4 comments
Closed
6 tasks

Throwing run time error . #3679

SupriyaGo opened this issue Jun 5, 2021 · 4 comments

Comments

@SupriyaGo
Copy link

Describe the bug

I have a react project created with Vite js. When I am importing airtable in my project its throwing error.
code
coonsole

Reproduction

System Info

Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:

Used package manager:

Logs


Before submitting the issue, please make sure you do the following

@dejour
Copy link
Contributor

dejour commented Jun 5, 2021

can you provide a reproduction?

@github-actions
Copy link

github-actions bot commented Jun 6, 2021

Hello @SupriyaGo. Please provide a online reproduction by codesandbox or a minimal GitHub repository. Issues labeled by need reproduction will be closed if no activities in 3 days.

@SupriyaGo
Copy link
Author

@patak-dev
Copy link
Member

Looks like airtable is a node library https://www.npmjs.com/package/airtable, and that is why you are getting an error that the browser doesn't have the required node builtins

From the docs:

Browser
To use airtable.js in the browser, use airtable.browser.js which is in the build folder.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants