django-compressor-toolkit
django-compressor-toolkit copied to clipboard
Cannot find module, but module is installed
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...?