django-compressor-toolkit icon indicating copy to clipboard operation
django-compressor-toolkit copied to clipboard

Cannot find module, but module is installed

Open gkpo opened this issue 5 years ago • 0 comments

Trying to import axios from node_modules. Here's my code:

{% compress js %}

<script type="module">
  import axios from 'axios'
</script>

{% endcompress %}

I get the following error:

Error: Cannot find module 'axios' from '/private/var/folders/3c/j8344gl91f73mh3w4dsl0ylm0000gn/T'
    at /path-to-my-project/node_modules/browser-resolve/node_modules/resolve/lib/async.js:46:17

It looks like the package is not looking inside the node_modules directory, but some kind of temp dir...?

gkpo avatar Apr 03 '19 13:04 gkpo