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

Cannot use import statement outside a module #4255

Closed
deceptivesiteahead opened this issue Jun 19, 2024 · 1 comment
Closed

Cannot use import statement outside a module #4255

deceptivesiteahead opened this issue Jun 19, 2024 · 1 comment
Labels

Comments

@deceptivesiteahead
Copy link

import * as matrixcs from "./matrix";
^^^^^^

SyntaxError: Cannot use import statement outside a module
at wrapSafe (node:internal/modules/cjs/loader:1376:18)
at Module._compile (node:internal/modules/cjs/loader:1405:20)
at Module._extensions..js (node:internal/modules/cjs/loader:1544:10)
at Module.load (node:internal/modules/cjs/loader:1275:32)
at Module._load (node:internal/modules/cjs/loader:1091:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:212:19)
at Module.require (node:internal/modules/cjs/loader:1297:12)
at require (node:internal/modules/helpers:123:16)
at Object. (/run/media/avdhut/New Volume/Bots/reddit-chat/app.js:3:11)
at Module._compile (node:internal/modules/cjs/loader:1460:14)

Node.js v22.3.0

@dosubot dosubot bot added the T-Defect label Jun 19, 2024
@t3chguy
Copy link
Member

t3chguy commented Jun 19, 2024

This is a bug tracker not a support forum. Try #matrix-dev:matrix.org and make sure to include your problematic code, not just an error.

@t3chguy t3chguy closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants