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
import{expect,test}from"vitest";// worksimportutcfrom"https://esm.sh/dayjs/plugin/utc";// worksimportdayjsfrom"https://esm.sh/dayjs";// worksimport{and}from"https://esm.sh/drizzle-orm";// works// import { text } from "https://esm.sh/drizzle-orm/pg-core"; // doesn't work// import { text } from "drizzle-orm/pg-core"; // workstest("with drizzle-orm",()=>{dayjs.extend(utc);console.log(dayjs());console.log(and);// console.log(text);expect(1).toBe(1);});
Originally I though the plugin might have issues with the 2nd and later levels in external modules, but the dayjs example suggests otherwise.
If you uncomment the // import { text } from "https://esm.sh/drizzle-orm/pg-core"; line AND the // console.log(text);, then I get the error:
FAIL tests/bad.test.ts [ tests/bad.test.ts ]
Error: Only URLs with a scheme in: file and data are supported by the default ESM loader. Received protocol 'https:'
Any idea what's going on? Is there a workaround? Obviously I want this for a shared library between normal vite and deno.
The text was updated successfully, but these errors were encountered:
Originally I though the plugin might have issues with the 2nd and later levels in external modules, but the
dayjs
example suggests otherwise.If you uncomment the
// import { text } from "https://esm.sh/drizzle-orm/pg-core";
line AND the// console.log(text);
, then I get the error:Any idea what's going on? Is there a workaround? Obviously I want this for a shared library between normal
vite
anddeno
.The text was updated successfully, but these errors were encountered: