You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/Users/arch/typescript-swc-starter/node_modules/victor-db/victor_db.js:1
import * as wasm from "./victor_db_bg.wasm";
^^^^^^
for import pkg from "victor-db/victor_db.js";
or using either import pkg from "victor-db" or import pkg from "victor" and I will get
throw new ERR_MODULE_NOT_FOUND(
^
CustomError: Cannot find package '/Users/arch/typescript-swc-starter/node_modules/victor-db/'
The text was updated successfully, but these errors were encountered:
archywillhe
changed the title
SyntaxError: Cannot use import statement outside a module
gets either Cannot find package or SyntaxError: Cannot use import statement outside a module
Oct 10, 2023
tried to yarn installed the project and got
for
import pkg from "victor-db/victor_db.js";
or using either
import pkg from "victor-db"
orimport pkg from "victor"
and I will getThe text was updated successfully, but these errors were encountered: