CanadaHonk
CanadaHonk
DDeno
Created by CanadaHonk on 1/21/2024 in #help
Dynamically importing NPM modules errors
The following works fine in Node:
const parser = 'acorn';
const { parse } = await import(parser);
const parser = 'acorn';
const { parse } = await import(parser);
But with Deno gives the error:
Uncaught (in promise) TypeError: Loading unprepared module: npm:acorn@^8.9.0
Uncaught (in promise) TypeError: Loading unprepared module: npm:acorn@^8.9.0
Not sure what I should do to "prepare" it since I can't find any information on it?
2 replies
DDeno
Created by CanadaHonk on 12/29/2022 in #help
modifying the Deno object
heyo. is there any way to add our own properties to the Deno object? I read something which said since v1.12 it's no longer frozen but looks like that is no longer the case. wanting to add my own version to Deno.version. thanks!
3 replies