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 worker.js #352

Open
SheldonWBM opened this issue Jul 6, 2024 · 3 comments
Open

Cannot find module worker.js #352

SheldonWBM opened this issue Jul 6, 2024 · 3 comments
Labels
needs repro Need a repository that can reproduce the problem Stale

Comments

@SheldonWBM
Copy link

SheldonWBM commented Jul 6, 2024

"eslint": "^9.6.0"
"typescript": "5.5.3",
"eslint-plugin-jsonc": "^2.16.0"
[email protected]

[Info  - 15:06:30] ESLint library loaded from: 
[my_path]/.yarn/sdks/eslint/lib/api.js
Uncaught exception received.
Error: Cannot find module '[my_path]/.yarn/__virtual__/eslint-plugin-jsonc-virtual-921eb7150c/0/cache/eslint-plugin-jsonc-npm-2.16.0-988161132b-20ca0eff63.zip/node_modules/eslint-plugin-jsonc/dist/utils/get-auto-jsonc-rules-config/worker.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1055:15)
    at Module._load (node:internal/modules/cjs/loader:908:27)
    at c._load (node:electron/js2c/node_init:2:13672)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:96:12)
    at MessagePort.<anonymous> (node:internal/main/worker_thread:192:26)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:807:20)
    at exports.emitMessage (node:internal/per_context/messageport:23:28)

eslint.config.mjs

import eslintPluginJsonc from 'eslint-plugin-jsonc';

export default [
     ...eslintPluginJsonc.configs['flat/recommended-with-json'],
     rules: {
         'jsonc/sort-keys': 'warn'
     }
]

@SheldonWBM SheldonWBM changed the title JSONC cannot find module worker.js Cannot find module worker.js Jul 6, 2024
@ota-meshi
Copy link
Owner

Please share a repository where the issue can be reproduced.

@ota-meshi ota-meshi added the needs repro Need a repository that can reproduce the problem label Jul 6, 2024
@SheldonWBM
Copy link
Author

Sharing a repo is not possible at this time. On the weekend, I might create a minimum reproducible repo.

Please share a repository where the issue can be reproduced.

Copy link
Contributor

github-actions bot commented Sep 7, 2024

This issue is is stale because it missing information and has been open for 60 days with no activity.

@github-actions github-actions bot added the Stale label Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Need a repository that can reproduce the problem Stale
Projects
None yet
Development

No branches or pull requests

2 participants