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 './arrayWithHoles.js' #81

Open
frenicohansen opened this issue Jun 30, 2024 · 0 comments
Open

Cannot find module './arrayWithHoles.js' #81

frenicohansen opened this issue Jun 30, 2024 · 0 comments

Comments

@frenicohansen
Copy link

frenicohansen commented Jun 30, 2024

Issue Summary

I encountered an error while trying to port the pragmatic drag and drop React version example pdnd-react-tailwind into a Vue version using the Nuxt framework.

Error Details

I received the following error in this reproduction: Error Reproduction.

Cannot find module './arrayWithHoles.js' Require stack: - /project/workspace/@babel/runtime/helpers/slicedToArray

at Module._load (node:internal/modules/cjs/loader:901:27)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at ./@babel/runtime/helpers/slicedToArray:1:22
at ViteNodeRunner.runModule (./node_modules/.pnpm/[email protected]/node_modules/vite-node/dist/client.mjs:362:11)
at ViteNodeRunner.directRequest (./node_modules/.pnpm/[email protected]/node_modules/vite-node/dist/client.mjs:346:16)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ViteNodeRunner.cachedRequest (./node_modules/.pnpm/[email protected]/node_modules/vite-node/dist/client.mjs:189:14)
at async ViteNodeRunner.dependencyRequest (./node_modules/.pnpm/[email protected]/node_modules/vite-node/dist/client.mjs:233:12)

However, in another reproduction, it works fine: Working Reproduction.

Any help in resolving this issue would be greatly appreciated. Thank you!

Suspected Cause

I believe the issue might be related to differences in the pnpm-lock.yaml file content between the two reproductions. Everything else appears to be identical.

Steps to Reproduce

  1. Open the reproduction.
  2. Install dependencies using pnpm install.
  3. Run the Nuxt application using pnpm dev.

Environment

  System:
    OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
    CPU: (2) x64 AMD EPYC
    Memory: 321.55 MB / 4.01 GB
    Container: Yes
    Shell: Unknown
  Binaries:
    Node: 20.9.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.8.1 - /usr/local/bin/npm
    pnpm: 8.10.2 - /usr/local/share/npm-global/bin/pnpm
  npmPackages:
    nuxt: ^3.12.2 => 3.12.2 
    vue: latest => 3.4.31 
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