king_eke's avatar

Laravel Hot Bundle Error

I'm having issues running npm run hot getting this error

Module build failed: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './runtime.js' is not defined by "exports"

My webpack.mix.js file

mix.js('resources/js/app.js', 'public/js')
    .react()
    .sass('resources/sass/app.scss', 'public/css')
    .browserSync('127.0.0.1:8000')
    .extract()
    .disableNotifications()
    .version();

Added the bundle to app.blade.php file

<script src="{{ mix('js/bundle.js') }}"></script>

Same issue, please help

0 likes
1 reply
king_eke's avatar
king_eke
OP
Best Answer
Level 1

Had to run npm update, resolved my issue.

1 like

Please or to participate in this conversation.