Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module, but module is installed #10

Open
gkpo opened this issue Apr 3, 2019 · 0 comments
Open

Cannot find module, but module is installed #10

gkpo opened this issue Apr 3, 2019 · 0 comments

Comments

@gkpo
Copy link

gkpo commented Apr 3, 2019

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...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant