import with full path
See original GitHub issueif you are going to allow es6 import/export than you should really require extensions on your path. node handle it just fine but browsers dose not.
i can’t simply just do this in the browser without having to bundle it first
<script type="module">
import dropbox form 'https://cdn.jsdelivr.net/npm/dropbox@4.0.30/es/index.es6.js'
</script>
it tries to load https://cdn.jsdelivr.net/npm/dropbox@4.0.30/es/team/dropbox-team
when it should be loading https://cdn.jsdelivr.net/npm/dropbox@4.0.30/es/team/dropbox-team.js
Ryan Dahl regrets the hole package.js and modules resolver. this is not how browser dose things.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How to import a Python module given the full path?
This is the easiest way to import a Python module by adding the module path to the path variable. The path variable contains...
Read more >How can I import a module dynamically given the full path?
The python path can contain zip archives, "eggs" (a complex kind of zip archives), etc. Modules can be imported out of them. So...
Read more >How to import a Python module given the full ... - Tutorialspoint
The easiest way to import a Python module, given the full path is to add the path to the path variable. The path...
Read more >How To Import A Module Given The Full Path - Finxter
To import the module to your Python code, you can use the sys.path.append() function to add the directory of the required module to...
Read more >Understand and Configure Absolute Import Paths in JavaScript
An absolute import path is a path that starts from a root, and you need to define a root first. In a typical...
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 FreeTop 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
Top GitHub Comments
@jimmywarting We’ve updated this in the SDK, so you should now be able to import it like this:
Hope this helps!
thx