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

victory-vendor cannot be used in node type: module environment #3044

Open
2 tasks done
BQXBQX opened this issue Jan 22, 2025 · 0 comments
Open
2 tasks done

victory-vendor cannot be used in node type: module environment #3044

BQXBQX opened this issue Jan 22, 2025 · 0 comments
Labels
Type: Bug 🐛 Oh no! A bug or unintentional behavior

Comments

@BQXBQX
Copy link

BQXBQX commented Jan 22, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

VictoryVendor version

37.3.6

Code Sandbox link

https://stackblitz.com/edit/stackblitz-starters-rngmm1lg?file=index.js

Bug report

I encountered a problem when using victory-vendor in a node type:module environment:


export * from "d3-array";
^^^^^^

SyntaxError: Unexpected token 'export'
    at wrapSafe (node:internal/modules/cjs/loader:1281:20)
    at Module._compile (node:internal/modules/cjs/loader:1321:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)
    at cjsLoader (node:internal/modules/esm/translators:348:17)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:297:7)
    at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)

Node.js v20.14.0

Environment

- Device: Desktop
- OS: Macos 14.4.1
- Node: v20.14.0
- npm: 10.7.0
@BQXBQX BQXBQX added the Type: Bug 🐛 Oh no! A bug or unintentional behavior label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐛 Oh no! A bug or unintentional behavior
Projects
None yet
Development

No branches or pull requests

1 participant