import { shuffle } from 'lodash';
<script type="module" src="./script.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.js" ></script>
How to solve this issue? the library is not loading and getting multiple errors such as
Uncaught TypeError: Failed to resolve module specifier “lodash”. Relative references must start with either “/”, “./”, or “../”.
or can’t import outside the module. How to fix it? My HTML head is above, I got the CDN from their website and I only need to import shuffle.