Import a script inside a component or api cause an error
See original GitHub issueHey!
I’m trying to call a script outside my aleph project (I am on a monorepo project).
import React from "https://esm.sh/react";
import a from "../../dt-gitlab-wrapper/index.ts";
const b = new a("1");
export default function Runners() {
...
}
When I do that I get the following error:
It’s normal behavior? We can’t call a script outside the component?
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
"Uncaught SyntaxError: Cannot use import statement outside ...
There are three ways to solve this:- · 1. The first: In the script, include type=module · 2. The second: In node.js, into...
Read more >Troubleshooting common React Native bugs - LogRocket Blog
This troubleshooting guide shares how to easily find and address common React Native bugs. See common error examples.
Read more >The Script element - HTML: HyperText Markup Language
This attribute specifies the URI of an external script; this can be used as an alternative to embedding a script directly within a...
Read more >Troubleshooting - Astro Documentation
Solution: Try looking for errors in any component you are importing and rendering, and make sure it's working correctly. Consider opening an Astro...
Read more >Error Messages | Cypress Documentation
If you are setting Cypress defaults or utilizing custom Cypress commands, instead of needing to import/require those defaults/commands in every test file, you ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
please use synlimk as workaround currently
i seems the
git-wrapper
is out of your aleph app scope that alephjs can’t handle it, I will fix this, thanks!