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

Fireproof import returns undefined with Parcel bundler #364

Open
mudcube opened this issue Nov 22, 2024 · 0 comments
Open

Fireproof import returns undefined with Parcel bundler #364

mudcube opened this issue Nov 22, 2024 · 0 comments

Comments

@mudcube
Copy link

mudcube commented Nov 22, 2024

When attempting to import fireproof from @fireproof/core using Parcel bundler, the imported value is undefined.

Reproduction

Environment

  • @fireproof/core: ^0.19.112
  • Parcel: ^2.13.0

Steps to Reproduce

  1. Create a new project with the following package.json:
{
  "dependencies": {
    "@fireproof/core": "^0.19.112",
    "parcel": "^2.13.0"
  },
  "scripts": {
    "start": "parcel index.html"
  }
}
  1. Add the following code:
import { fireproof } from '@fireproof/core'

console.log(fireproof === undefined)
<script src="./app.js" type="module"></script>
  1. Run npm start

Expected Behavior

The fireproof import should be a defined value containing the Fireproof functionality.

Actual Behavior

The fireproof import is undefined.

@mudcube mudcube changed the title Fireproof import returns undefined with Parcel bundler Fireproof import returns undefined with Parcel bundler Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant