Code Monkey home page Code Monkey logo

Comments (5)

hlolli avatar hlolli commented on May 18, 2024 1

So I tested the changes, I got the exact same error

[!] Error: Could not load util (imported by node_modules/stacktracey/stacktracey.js): ENOENT: no such file or directory, open 'util'
Error: Could not load util (imported by node_modules/stacktracey/stacktracey.js): ENOENT: no such file or directory, open 'util'

to be sure it's new version, I looked into node_modules at the package.json version "version": "1.1.164",

So I just made a reproduceable example repo
which actually starts with a different error message, as I've already made a browserify global alias for nodejs's path module (this I can't do with all modules as I have dependencies which require their own fs and util for example).

./index.ejs → index.js...
[!] Error: Could not load path (imported by node_modules/stacktracey/stacktracey.js): ENOENT: no such file or directory, open 'path'
Error: Could not load path (imported by node_modules/stacktracey/stacktracey.js): ENOENT: no such file or directory, open 'path'

This you can test out here https://github.com/hlolli/ololog_bug using the command yarn build. The two plugins (which are potentially the culprits) are @rollup/plugin-node-resolve for putting the node_modules into scope, and @rollup/plugin-commonjs for importing commonjs modules as es module.

from ololog.

xpl avatar xpl commented on May 18, 2024

Could you provide a reproducible example as a github repo (I'm too lazy to configure rollup)?

from ololog.

xpl avatar xpl commented on May 18, 2024

Could you please check if the issue is gone with the latest published version of Ololog?

from ololog.

hlolli avatar hlolli commented on May 18, 2024

Sorry for not replying, mix of lazyness and busy on my side. I will test today!

from ololog.

xpl avatar xpl commented on May 18, 2024

Thank you for the repro, I'll look into it in the coming days.

from ololog.

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.