hotwired / turbo

The speed of a single-page web application without having to write any JavaScript
https://turbo.hotwired.dev
MIT License
6.65k stars 421 forks source link

turbo.es2017-esm.js.map 404 error #200

Open mbardelmeijer opened 3 years ago

mbardelmeijer commented 3 years ago

We're using Turbo in a Laravel Mix environment, which uses Webpack 5 in the background.

After importing and setting everything up the logic works fine, expect that the browser outputs an error that the sourcemap cannot be found. What's the best practice around this?

Warning:

image

Setup:

import * as Turbo from '@hotwired/turbo';

window.Turbo = Turbo
Turbo.start()
cjaoude commented 3 years ago

@mbardelmeijer Adding .version() resolved this for me; cache busting. Turbo documentation recommends cache busting, so may have something to do with it.