这是indexloc提供的服务,不要输入任何密码
Skip to content

No loader is configured for ".node" files #303

@NuroDev

Description

@NuroDev

I'm currently working on a project that is using tsup to bundle the backend express server for a vite project.

However, when attempting to call createViteServer I get 2 errors. The first being about not being able to resolve acorn (Adding --external acorn fixed that). However the other error I am not so sure about as such a simple fix for.

Unless I am missing something it seems like .node modules would need to be added to tsup in order to fix this/work around it?

> ../../node_modules/fsevents/fsevents.js:13:23: error: No loader is configured for ".node" files: ../../node_modules/fsevents/fsevents.node
    13 │ const Native = require("./fsevents.node");~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions