• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-Parcel

Scheduled Pinned Locked Moved Unsolved Troubleshooting
4 Posts 3 Posters 788 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    JohnBachini
    last edited by Oct 12, 2021, 9:42 AM

    Any ideas on this ? is this to do with the unused (undocumented) modules being removed.

    [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/pi/MagicMirror/modules/MMM-Parcel/node_modules/node-fetch/src/index.js
    require() of ES modules is not supported.
    require() of /home/pi/MagicMirror/modules/MMM-Parcel/node_modules/node-fetch/src/index.js from /home/pi/MagicMirror/modules/MMM-Parcel/node_helper.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
    Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/pi/MagicMirror/modules/MMM-Parcel/node_modules/node-fetch/package.json.
    
    

    Thanks

    M 1 Reply Last reply Oct 12, 2021, 11:04 AM Reply Quote 0
    • M Offline
      MMRIZE @JohnBachini
      last edited by Oct 12, 2021, 11:04 AM

      @johnbachini
      The Mmm-Parcel may be using node-fetch, but it calls that in wrong way. Ask the creator.

      K 1 Reply Last reply Oct 12, 2021, 5:06 PM Reply Quote 0
      • K Offline
        karsten13 @MMRIZE
        last edited by Oct 12, 2021, 5:06 PM

        https://github.com/martinkooij/MMM-Parcel/pull/31

        J 1 Reply Last reply Oct 15, 2021, 3:59 PM Reply Quote 0
        • J Offline
          JohnBachini @karsten13
          last edited by Oct 15, 2021, 3:59 PM

          @karsten13 Great, fixed it, cheers

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            1/4
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy