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

Cannot find module '@floating-ui/dom' #832

Open
challet opened this issue Oct 17, 2024 · 0 comments
Open

Cannot find module '@floating-ui/dom' #832

challet opened this issue Oct 17, 2024 · 0 comments

Comments

@challet
Copy link

challet commented Oct 17, 2024

Hi,

When running test in a CI environement (github action runner) the following error crashes them :

It uses "@material-tailwind/react": "^2.1.10"

react-scripts test --all --watchAll=false --coverage
…
Cannot find module '@floating-ui/dom' from '/home/runner/work/appname/appname/.yarn/__virtual__/@floating-ui-react-virtual-762d97cb56/4/.yarn/berry/cache/@floating-ui-react-npm-0.19.0-97e58aebbc-10c0.zip/node_modules/@floating-ui/react/dist'
    Require stack:
      .yarn/__virtual__/@floating-ui-react-virtual-762d97cb56/4/.yarn/berry/cache/@floating-ui-react-npm-0.19.0-97e58aebbc-10c0.zip/node_modules/@floating-ui/react/dist/floating-ui.react.umd.js
      .yarn/__virtual__/@material-tailwind-react-virtual-6bedee485e/4/.yarn/berry/cache/@material-tailwind-react-npm-2.1.10-08be2af798-10c0.zip/node_modules/@material-tailwind/react/components/Dialog/index.js
      .yarn/__virtual__/@material-tailwind-react-virtual-6bedee485e/4/.yarn/berry/cache/@material-tailwind-react-npm-2.1.10-08be2af798-10c0.zip/node_modules/@material-tailwind/react/index.js
      src/index.tsx
      src/index.test.tsx
…
    > 5 | import { ThemeProvider } from "@material-tailwind/react";

That doesn't happen on my local environment where it is available as expected:

% yarn why @floating-ui/dom -R                                                                                                         (
└─ appname@workspace:.
   └─ @material-tailwind/react@npm:2.1.10 [90a96] (via npm:^2.1.10 [90a96])
      └─ @floating-ui/react@npm:0.19.0 [6bede] (via npm:0.19.0 [6bede])
         └─ @floating-ui/react-dom@npm:1.3.0 [762d9] (via npm:^1.2.2 [762d9])
            └─ @floating-ui/dom@npm:1.6.11 (via npm:^1.2.1)

Tried to apply the solution from #693 which mentions floating-ui, without success

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant