Source map error: Error: request failed with status 404 Resource URL: https://cdn.jsdelivr.net/npm/@barba/core@2.9.7 Source Map URL: barba.umd.js.map

Viewed 10490

I'm trying to install BarbaJS with a JS bundler for my GitHub-hosted website. Using CDN, I include a line that installs BarbaJS but when I open the website I get a source map error:

Source map error: Error: request failed with status 404 Resource URL: https://cdn.jsdelivr.net/npm/@barba/core@2.9.7 Source Map URL: barba.umd.js.map

Their documentation doesn't seem to mention this error.

Here is my script tag that installs the library:

<script src="https://cdn.jsdelivr.net/npm/@barba/core@2.9.7"></script>
1 Answers
<script type="javascript" src="https://cdn.jsdelivr.net/npm/@barba/core@2.9.7"></script>

Adding the type made it work for me.

Related