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

> SyntaxError: Cannot use import statement outside a module #4

Open
dcsan opened this issue Jan 12, 2024 · 0 comments
Open

> SyntaxError: Cannot use import statement outside a module #4

dcsan opened this issue Jan 12, 2024 · 0 comments

Comments

@dcsan
Copy link

dcsan commented Jan 12, 2024

import * as fs from "fs";
import Replicate, { Prediction } from "replicate";
import urlExists from "url-exists-nodejs";

import { Clog } from "../../utils/Clog";

getting this:

SyntaxError: Cannot use import statement outside a module

does this package use ESM, or commonJS or something obscure?
i'm compiling with typescript tho running in jest... doing many other imports but compiler chokes on this import

image

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