Roots Discourse

Delete script from autoload generating an error


#1

Hi,

I add a script in the “autoload” folder to test. After my test, it does not suit me anymore, I decided to delete the .js file from the “autoload” folder.

And there, I have an error in my compilation

"This relative module was not found:

  • ./autoload/outdatedbrowser.js in ./resources/assets/scripts/main.js "

How can I stop this error from appearing? The file no longer exists and it is not called anywhere.

Thank you !


#2

Hey @Jimmylet - maybe try deleting your dist folder and rerunning yarn build?