Code Monkey home page Code Monkey logo

laravel-mix-blade-reload's Issues

Cannot redefine property: tap

Fresh install of Laravel 8 with Laravel mix: 6.0.6

webpack-cli] TypeError: Cannot redefine property: tap
    at Function.defineProperty (<anonymous>)
    at Object.<anonymous> (node_modules/laravel-mix-blade-reload/node_modules/laravel-mix/src/helpers.js:21:8)
const mix = require('laravel-mix');

require('laravel-mix-blade-reload');

mix.js('resources/js/app.js', 'public/js')
    .bladeReload()
    .postCss('resources/css/app.css', 'public/css', [
        //
    ]);

My guess is maybe releasing a 2.0 with laravel-mix 6.0 instead of 5.0 as a dependency

this.serverHandler.sockWrite is not a function

    "laravel-mix": "^6.0.31",
    "laravel-mix-blade-reload": "^2.0.0",

npx mix watch --hot compiles fine the first time but when saving a file throws this error and the browser is not hot reloaded

/node_modules/laravel-mix-blade-reload/dist/index.js:89
            this.serverHandler.sockWrite(this.serverHandler.sockets, 'content-changed');
                               ^

TypeError: this.serverHandler.sockWrite is not a function
    at BladeReload.reload (/node_modules/laravel-mix-blade-reload/dist/index.js:8
9:32)

What other information do you need to debug?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.