Stack Overflow for Teams is moving to its own domain! Is it enough to verify the hash to ensure file is virus free? How to help a student who has internalized mistakes? Ensure that you are loading the .js files in the correct order: I got the same error, I'm using laravel 5.4 with webpack, here package.json before: I had to move jquery and datatables.net npm packages under one of these "dependencies": {} or "devDependencies": {} in package.json and the error disappeared, after: