You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently trying out this plugin and hope I can use it as future replacement of my current setup with Parcel.
Building my project with eleventy-plugin-vite works fine - all scripts, styles and other assets are bundled correctly.
But when running in dev / serve mode, I get an error in the browser stating that it can't resolve node_modules dependencies.
E.g., I import Alpine.js in my main script with:
import Alpine from "alpinejs";
In my base layout, I include my main script like this:
I am currently trying out this plugin and hope I can use it as future replacement of my current setup with Parcel.
Building my project with eleventy-plugin-vite works fine - all scripts, styles and other assets are bundled correctly.
But when running in dev / serve mode, I get an error in the browser stating that it can't resolve node_modules dependencies.
E.g., I import Alpine.js in my main script with:
import Alpine from "alpinejs";
In my base layout, I include my main script like this:
<script type="module" src="/js/index.js"></script>
In my Eleventy config, I do a passthrough-copy of the script:
And I get this error:
Error resolving module specifier “alpinejs”. Relative module specifiers must start with “./”, “../” or “/”.
Any hints / suggestions? Do you face similar issues?
Cheers, Florian
The text was updated successfully, but these errors were encountered: