Closed C0ZEN closed 4 years ago
I'll investigate, try rolling back to previous stable version as a workaround 0.10.0
@infctr thank you and let me know if you need more information.
@infctr the 0.10.0 is working fine.
@infctr updated to add more information about the command I run and the dependencies.
@C0ZEN Could you please give 1.1.0-rc1
build under next
tag a try?
@infctr with 1.1.0-rc1
😢
> eslint --fix --ext .js,.ts --cache scripts/ src/ jest.config.js config.ts
(node:956) ExperimentalWarning: Conditional exports is an experimental feature. This feature could change at any time
Oops! Something went wrong! :(
ESLint: 7.1.0
ESLint couldn't find the plugin "eslint-plugin-typescript-sort-keys".
(The package "eslint-plugin-typescript-sort-keys" was not found when loaded as a Node module from the directory "D:\cozen\Documents\sonia\il-est-midi-discord".)
It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
npm install eslint-plugin-typescript-sort-keys@latest --save-dev
The plugin "eslint-plugin-typescript-sort-keys" was referenced from the config file in ".eslintrc".
If you still can't figure out the problem, please stop by https://eslint.org/chat to chat with the team.
@C0ZEN Well, that's unexpected 🤔
What's your version of npm and node? Mind setting up a repro? I've tried setting up a repro based on your eslint config and indeed there was a missing sub-dependency, but I'm kinda out of clues here
@infctr ok I will try to create a minimal repro today.
@C0ZEN What's your eslint
script btw?
@infctr I added it on the issue.
npm run eslint --fix --ext .js,.ts --cache scripts/ src/ jest.config.js config.ts
Environment:
| software | version(s)
| ---------------- | -------
| node | 13.7.0
| npm | 6.14.4
| Operating System | Windows 10 64bits
But the error is also happening on the GitHub Actions.
Not the config, but npm script, the command you run here https://github.com/infctr/eslint-plugin-typescript-sort-keys/issues/17#issue-623291374
And what's your npm and node version?
@infctr
So far when trying to create a reproduction I encountered this new error when installing the next 1.1.0-rc1
version.
Error: Failed to load plugin 'typescript-sort-keys' declared in '.eslintrc': No valid exports main found for 'D:\cozen\Documents\eslint\eslint-plugin-typescript-sort-keys-issue-468\node_modules\eslint-plugin-typescript-sort-keys'
Require stack:
- D:\cozen\Documents\eslint\eslint-plugin-typescript-sort-keys-issue-468\__placeholder__.js
@infctr maybe you could try it yourself: https://github.com/C0ZEN/eslint-plugin-typescript-sort-keys-issue-468
Doesn't seem to reproduce for me on
❯ npm -v
6.14.4
❯ node -v
v12.16.3
@C0ZEN What versions are you on?
So this seems to be the node version issue as explained here https://github.com/jaydenseric/extract-files/issues/13#issuecomment-610324961
Try updating node version to other than v13.0.0 - v13.6 range
@infctr nice catch about the node problem, it was the least expected from my point of view.
Environment with the error:
| software | version(s)
| ---------------- | -------
| node | 13.7.0
| npm | 6.14.4
| Operating System | Windows 10 64bits
After upgrading to node 14.3.0
the issue was solved.
Nevertheless I have now another issue in the reproduction:
Invalid "exports" main target "lib/index.cjs.js" defined in the package config /D:/cozen/Documents/eslint/eslint-plugin-typescript-sort-keys-issue-468/node_modules/eslint-plugin-typescript-sort-k
eys\package.json; targets must start with "./"
But I will try to upgrade the version of this dependency in my real project to see if this is alright.
@infctr same error with my real project. Do you know if this is somehow related to node or did you change something on the 1.1.0
version of higher?
Edit:
The GitHub CI do not have the problem.
This is again related to node sadly.
So, both 13.7.0
and 14.3.0
are not working well 😭
@C0ZEN The error on node 14.3.0
is fixable, I'll make a release shortly
Please try latest version v1.2.0
@infctr indeed the 1.2.0
fixed the last error. Nice work dude.
Since today.
Command:
The stack trace:
Environments:
.eslintrc: