Closed daredoes closed 12 months ago
@daredoes try importing from "eta/dist/browser.umd.js"
or "eta/dist/browser.module.mjs"
.
I'm using deno in an edge function, and it doesn't have node:fs
or node:path
.
I'm seeing
Failed to load module: "node:path" - Unsupported scheme "node" for module "node:path". Supported schemes: [
"data",
"blob",
"file",
"http",
"https",
]
Right when I call new Eta()
I got around the issue by using:
import { Eta } from "https://deno.land/x/eta@v3.0.3/src/core.ts";
@visoft I think the issue is your Deno version. Which are you using? It will likely need to be 1.31.0 or later.
Describe the bug ETA is unable to be used in certain projects due to the usage of
node:fs
andnode:path
.To Reproduce Build a library using RollupJS that uses Eta
Expected behavior The library builds
Screenshots If applicable, add screenshots to help explain your problem.
Package & Environment Details
Additional context I was able to solve this in my own fork by completely removing the usage of
file-handler.ts
. It would be great to havefile-handler.ts
be its own package that can be added into Eta during the configuration.