Trouble importing npm modules

Any advice?
T
Testersen™468d ago
What exactly is the issue? The module is not found? In that case, are you sure that is the correct module name?
K
kidnextdoor468d ago
Yes, absolutely. Copied from my node project. https://www.npmjs.com/package/@web3-onboard/core
npm
@web3-onboard/core
Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, mul. Latest version: 2.12.1, last published: 21 days ago. Start using @web3-onboard/core in you...
T
Testersen™468d ago
Can you show the command you use to start the project? And also the output of deno version
K
kidnextdoor459d ago
Hey, I use "dev": "deno run -A --node-modules-dir npm:vite",
K
kidnextdoor459d ago
K
kidnextdoor459d ago
K
kidnextdoor459d ago
More Posts
Trouble importing modulesPossible to check of a file is being run as worker?```ts if (import.meta.main) { main() } ``` is there a way to disable calling `main()` if the file Deno linter is telling me that writeAll from streams conversion is deprecatedIs import { writeAll } from "https://deno.land/std@0.171.0/streams/conversion.ts" deprecated?How to get Deno's default compilerOptions value?I want to add more compilerOptions.lib options like this: ``` "compilerOptions": { "jsx": "readeno.run not working as expectedso when i run `mysql --defaults-extra-file=./tmpcnf_from_f_execute_query.cnf -e "DROP DATABASE test_Why doesn't latest Deno standard library for encoding CSV files support StringifyOptions?I need to remove headers see: https://deno.land/std@0.167.0/encoding/csv.ts?s=stringifyIs there any way to trace where permissions prompts are coming from?I'm running some code through Deno and its prompting for some permissions. How can I find out where modifying the Deno objectheyo. is there any way to add our own properties to the `Deno` object? I read something which said sWhat postgres module should I use?I've been using `/x/postgres` for almost a year but I see that `/x/postgresjs` has been updated moreIs it possible to rename a module in third party modules?I've created a module and I would like to rename it as I think I broke convention. Is this possible?Lint for if you forgot to `await` a Promise?If you have async methods that you call for their side effects, it's easy to forget to `await` them.what is import.meta.url on implicit versionI am in an awkward situation where I want to test retrieving the version from the url of my module wDeno SDL2 Default Text Render Example (FFI problem w 1.29)Trying to get the font render example in the Deno SDL2 repo https://github.com/littledivy/deno_sdl2/third party module - edit webhook subdirectoryHi, I just published a module https://deno.land/x/sqlite_native@0.1.0 but the actual library content