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

Can't build eslint plugin #1027

Open
artalar opened this issue Jan 30, 2025 · 0 comments
Open

Can't build eslint plugin #1027

artalar opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@artalar
Copy link
Owner

artalar commented Jan 30, 2025

What happened?

npm run build

> @reatom/[email protected] build
> microbundle -f esm,cjs

(rpt2 plugin) Error: /home/artalar/code/reatom/packages/eslint-plugin/src/rules/schedule-import-rule.ts.ts(60,11): semantic error TS2322: Type 'CallExpression' is not assignable to type 'Node'.
  Type 'SimpleCallExpression' is not assignable to type 'Node'.
    Type 'import("/home/artalar/code/reatom/packages/eslint-plugin/node_modules/@types/estree/index").SimpleCallExpression' is not assignable to type 'import("/home/artalar/code/reatom/node_modules/@types/estree/index").SimpleCallExpression'.
      Types of property 'callee' are incompatible.
        Type 'import("/home/artalar/code/reatom/packages/eslint-plugin/node_modules/@types/estree/index").Expression | import("/home/artalar/code/reatom/packages/eslint-plugin/node_modules/@types/estree/index").Super' is not assignable to type 'import("/home/artalar/code/reatom/node_modules/@types/estree/index").Expression | import("/home/artalar/code/reatom/node_modules/@types/estree/index").Super'.
          Type 'ArrayExpression' is not assignable to type 'Expression | Super'.
            Type 'import("/home/artalar/code/reatom/packages/eslint-plugin/node_modules/@types/estree/index").ArrayExpression' is not assignable to type 'import("/home/artalar/code/reatom/node_modules/@types/estree/index").ArrayExpression'.
              Types of property 'elements' are incompatible.
                Type '(Expression | SpreadElement | null)[]' is not assignable to type '(Expression | SpreadElement)[]'.
                  Type 'Expression | SpreadElement | null' is not assignable to type 'Expression | SpreadElement'.
                    Type 'null' is not assignable to type 'Expression | SpreadElement'.
Error: /home/artalar/code/reatom/packages/eslint-plugin/src/rules/schedule-import-rule.ts.ts(60,11): semantic error TS2322: Type 'CallExpression' is not assignable to type 'Node'.
  Type 'SimpleCallExpression' is not assignable to type 'Node'.
    Type 'import("/home/artalar/code/reatom/packages/eslint-plugin/node_modules/@types/estree/index").SimpleCallExpression' is not assignable to type 'import("/home/artalar/code/reatom/node_modules/@types/estree/index").SimpleCallExpression'.
      Types of property 'callee' are incompatible.
        Type 'import("/home/artalar/code/reatom/packages/eslint-plugin/node_modules/@types/estree/index").Expression | import("/home/artalar/code/reatom/packages/eslint-plugin/node_modules/@types/estree/index").Super' is not assignable to type 'import("/home/artalar/code/reatom/node_modules/@types/estree/index").Expression | import("/home/artalar/code/reatom/node_modules/@types/estree/index").Super'.
          Type 'ArrayExpression' is not assignable to type 'Expression | Super'.
            Type 'import("/home/artalar/code/reatom/packages/eslint-plugin/node_modules/@types/estree/index").ArrayExpression' is not assignable to type 'import("/home/artalar/code/reatom/node_modules/@types/estree/index").ArrayExpression'.
              Types of property 'elements' are incompatible.
                Type '(Expression | SpreadElement | null)[]' is not assignable to type '(Expression | SpreadElement)[]'.
                  Type 'Expression | SpreadElement | null' is not assignable to type 'Expression | SpreadElement'.
                    Type 'null' is not assignable to type 'Expression | SpreadElement'.
    at error (/home/artalar/code/reatom/node_modules/rollup/dist/shared/rollup.js:198:30)
    at throwPluginError (/home/artalar/code/reatom/node_modules/rollup/dist/shared/rollup.js:21718:12)
    at Object.error (/home/artalar/code/reatom/node_modules/rollup/dist/shared/rollup.js:22672:20)
    at Object.error (/home/artalar/code/reatom/node_modules/rollup/dist/shared/rollup.js:21895:42)
    at RollupContext.error (/home/artalar/code/reatom/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:20259:30)
    at /home/artalar/code/reatom/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:29527:23
    at Array.forEach (<anonymous>)
    at printDiagnostics (/home/artalar/code/reatom/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:29500:17)
    at Object.transform (/home/artalar/code/reatom/node_modules/rollup-plugin-typescript2/dist/rollup-plugin-typescript2.cjs.js:29785:17)
    at /home/artalar/code/reatom/node_modules/rollup/dist/shared/rollup.js:22879:40

npm error Lifecycle script `build` failed with error:
npm error code 1
npm error path /home/artalar/code/reatom/packages/eslint-plugin
npm error workspace @reatom/[email protected]
npm error location /home/artalar/code/reatom/packages/eslint-plugin
npm error command failed
npm error command sh -c microbundle -f esm,cjs

Part

Package @reatom/eslint-plugin

Version

No response

What browsers are you seeing the problem on?

No response

Relevant log output

@artalar artalar added the bug Something isn't working label Jan 30, 2025
osovv added a commit to osovv/reatom that referenced this issue Feb 3, 2025
osovv added a commit to osovv/reatom that referenced this issue Feb 3, 2025
osovv added a commit to osovv/reatom that referenced this issue Feb 3, 2025
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

1 participant