Giter Club home page Giter Club logo

Comments (7)

lmestel avatar lmestel commented on September 15, 2024

I just run into the same issue.

find-up version 6 is ESM only, so const findUp = require('find-up'); (from your dist/cjs/index.js) throws an error:

Error [ERR_REQUIRE_ESM]: Must use import to load ES Modul

Edit: I'm working on an ordinary node setup (no electron)

from rollup-plugin-node-externals.

Septh avatar Septh commented on September 15, 2024

Oh dear. TBH, I'm beginning to get really, really, really tired of those commonjs/esm issues 😢

@lmestel > could you please try with 3.0.0 and tell me if it works? find-up was mistakenly bundled in 3.0.0, which is why I released 3.0.1 in the first place. But in the end, it might just be the right way to go.

@hmt > is your issue the same as @lmestel's or completely different?

from rollup-plugin-node-externals.

hmt avatar hmt commented on September 15, 2024

no, it's different. Doesn't say exactly what's wrong, doesn't even mention this plugin by name.

from rollup-plugin-node-externals.

lmestel avatar lmestel commented on September 15, 2024

I'm beginning to get really, really, really tired of those commonjs/esm issues

I feel you!

could you please try with 3.0.0

Oh, I didn't mention, that the error ocoured with version 3.1.0.
With 3.0.0 the build workes! 👍
But I had to change const externals = require('rollup-plugin-node-externals'); into const { default: externals } = require('rollup-plugin-node-externals'); (otherwise I get TypeError: externals is not a function 🤷)

from rollup-plugin-node-externals.

Septh avatar Septh commented on September 15, 2024

This is hopefully fixed in 3.1.1. Please let me know.

from rollup-plugin-node-externals.

hmt avatar hmt commented on September 15, 2024

Thank you! It works again. I don't even know why I need your plugin but it somehow solves a bunch of issues I have when trying to build my app without :S

from rollup-plugin-node-externals.

lmestel avatar lmestel commented on September 15, 2024

👍 Thank you very much!

from rollup-plugin-node-externals.

Related Issues (20)

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.