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

React/Babel TypeError: Class is undefined exports.wrap #10290

Open
MohsenEbi opened this issue Aug 1, 2019 · 2 comments

Comments

@MohsenEbi
Copy link

commented Aug 1, 2019

hi,
im using better-sqlite3 plugin in react.
when running project i face to this error:
image

code:
const db = require('better-sqlite3')('../../1.db', { });

this plugin owner answer to me:
Probably babel is unaware that you're trying to load a native C++ module.

what is my mistake? and anyone can help me?

@babel-bot

This comment has been minimized.

Copy link
Collaborator

commented Aug 1, 2019

Hey @MohsenEbi! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.

@babel-bot

This comment has been minimized.

Copy link
Collaborator

commented Aug 1, 2019

Hi @MohsenEbi! This issue is missing some important information we'll need to be able to reproduce this issue.

Please understand that we receive a high volume of issues, and there are only a limited number of volunteers that help maintain this project. The easier it is for us to decipher an issue with the info provided, the more likely it is that we'll be able to help.

Please make sure you have the following information documented in this ticket:

  1. Your Babel configuration (typically from .babelrc or babel.config.js)
  2. The current (incorrect) behavior you're seeing
  3. The behavior you expect
  4. A short, self-contained example

Please provide either a link to the problem via the repl, or if the repl is insufficient, a new and minimal repository with instructions on how to build/replicate the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.