Trouble with Deno imports
What's wrong with my import?
The link is valid and I cached it. (https://deno.land/x/deno_dom@v0.1.43)
![No description](https://cdn.answeroverflow.com/1192256676221436025/image.png)
6 Replies
I wasn't able to find the answer to your question in the official Deno documentation. However, based on the information you've provided, it seems like you might be missing the actual file path in your import statement. When importing from a URL in Deno, you need to specify the full path to the module file, including the file name and extension.
For example, if you're trying to import a specific module from the
deno_dom
package, your import statement should look something like this:
Please note that the above path is just an example, and you should replace deno-dom-wasm.ts
with the actual file you are trying to import from the deno_dom
package. Make sure to use the correct file name and extension as per the package's documentation.
This advice is not based on the Deno documentation, so I recommend double-checking the accuracy of the advice given and consulting the documentation or source repository for the deno_dom
package to find the correct file path for your import.That appears to be missing the version, and thus returns the documentation rather than the function. Try this:
import * as denoDom from "https://deno.land/x/deno_dom@v0.1.43/deno-dom-wasm.ts";
When I over it, maybe it's not a big deal?
![No description](https://cdn.answeroverflow.com/1193933776720511006/Screenshot_2024-01-08_at_4.06.18_PM.png)
My script runs poperly
![No description](https://cdn.answeroverflow.com/1193933852041822208/Screenshot_2024-01-08_at_4.06.45_PM.png)
I just found weird the red waves
Thanks for taking the time to answer