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
Hi
I work on a project with Drupal.
I installed foundation 6.7.4 with npm.
I want to use dropdown component so I import JS files (foundation.core.js, oundation.dropdown.js, and keyboard / box / touch / triggers utils) from node_modules folder with a type="module".
jQuery is loaded by Drupal. It's the first file loaded
In front, I have this error (in french) : Uncaught TypeError: failed to resolve module specifier jquery relative references must start with either / ./ or ../
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
I work on a project with Drupal.
I installed foundation 6.7.4 with npm.
I want to use dropdown component so I import JS files (foundation.core.js, oundation.dropdown.js, and keyboard / box / touch / triggers utils) from node_modules folder with a type="module".
jQuery is loaded by Drupal. It's the first file loaded
In front, I have this error (in french) : Uncaught TypeError: failed to resolve module specifier jquery relative references must start with either / ./ or ../
Can you help me ? What am I missing ?
Beta Was this translation helpful? Give feedback.
All reactions