Skip to content

Cannot get chokidar to work on MacOs (fsevents unexpected charakter) #712

@kevcodez

Description

@kevcodez

On MacOs, chokidar includes fsevents.

When building the application, it fails with the error:


Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to pr
ocess this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)

I have tried anything I could find online in regards to this issue. Mainly extending the webpack config in vue.config.js.

For example

const nodeExternals = require("webpack-node-externals");

module.exports = {
configureWebpack: {
    target: "node",
    externals: [nodeExternals()],
  }
}

Nothing fixed the issue and I would appreciate any help.

Is there a way to view the final webpack config that is generated? I feel like the changes in the vue config in regards to the webpack config are not picked up properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions