Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error from new version of dependecy Zustand #855

Open
Ramzza opened this issue Jun 26, 2024 · 1 comment
Open

Build error from new version of dependecy Zustand #855

Ramzza opened this issue Jun 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Ramzza
Copy link

Ramzza commented Jun 26, 2024

Describe the bug
React material-table is using the "zustand-latest" as a dependency.
Since this morning we are getting an npm build error:

ERROR in ./node_modules/zustand/esm/index.js 1:0
13:29:16 Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (1:0)
13:29:16 You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
13:29:16 > import { createStore } from 'zustand/vanilla';
13:29:16 | export * from 'zustand/vanilla';
13:29:16 | import ReactExports from 'react';
13:29:16 @ ./node_modules/@material-table/core/dist/store/LocalizationStore.js 12:15-33
13:29:16 @ ./node_modules/@material-table/core/dist/index.js 116:25-61

To Reproduce

  1. npm run build (for react project using material-table-core)
  2. build fails

Expected behavior
Build passes, as it did yesterday, before the new patch release of Zustand (dependency of material-table-core)

@Ramzza Ramzza added the bug Something isn't working label Jun 26, 2024
@Domino987
Copy link
Contributor

It works for me. Can you create a sandbox with the current zustand version that fails?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants