Giter Site home page Giter Site logo

SyntaxError: Named export 'extractByIndices' not found. The requested module '@untemps/utils/array/extractByIndices' is a CommonJS module, which may not support all module.exports as named exports. about svelte-palette HOT 5 CLOSED

untemps avatar untemps commented on June 15, 2024
SyntaxError: Named export 'extractByIndices' not found. The requested module '@untemps/utils/array/extractByIndices' is a CommonJS module, which may not support all module.exports as named exports.

from svelte-palette.

Comments (5)

untemps avatar untemps commented on June 15, 2024 1

You may have the issue if you build your project locally with vite build.
I guess the untemps/utils is missing from the package. I should add it to the exported filed or reference it as peer dependency.

In the meantime, installing @untemps/utils in your project should do the trick. Please let me know if it doesn't.

from svelte-palette.

ziedHamdi avatar ziedHamdi commented on June 15, 2024

This SO thread might help:

https://stackoverflow.com/questions/70605320/named-export-types-not-found-the-requested-module-mongoose-is-a-commonjs-mo

from svelte-palette.

untemps avatar untemps commented on June 15, 2024

Hi Zied,
Thanks for your report.
Which version of Node did you set for your Vercel deployment?

from svelte-palette.

ziedHamdi avatar ziedHamdi commented on June 15, 2024

Hi Vincent,

My Vercel is set to use 18.x
screenshot-vercel com-2023 06 08-08_40_05

from svelte-palette.

ziedHamdi avatar ziedHamdi commented on June 15, 2024

Great! It works back on Vercel. That's weird, they didn't resolve the dependency? Locally it's solved, why would that be?

Don't feel obliged to reply, my problem is solved, I'm just curious if you found out something about why it behaves differently? do you mean they don't use their own tools like verce build --prod in their servers?

from svelte-palette.

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.