You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When installing from the git repository (not npm), the script npm run build fails. The error message is:
(rpt2 plugin) Error: D:/git/gridjs/plugins/selection/src/rowSelection/rowSelection.tsx(3,71): semantic error TS2307: Cannot find module 'gridjs' or its corresponding type declarations. Error: D:/git/gridjs/plugins/selection/src/rowSelection/rowSelection.tsx(3,71): semantic error TS2307: Cannot find module 'gridjs' or its corresponding type declarations.
To Reproduce
Steps to reproduce the behavior:
Clone the project from github: git clone https://github.com/grid-js/gridjs.git
Move the terminal into the gridjs repository: cd gridjs
Run the build command: npm run build
See error
> [email protected] prebuild
> npm run clean
> [email protected] clean
> rimraf coverage dist tmp l10n/dist 'plugins/!(node_modules)/dist'
> [email protected] build
> run-p build:grid build:i18n build:plugins build:themes
> [email protected] build:grid
> microbundle build --raw --external none --tsconfig tsconfig.release.json
> [email protected] build:i18n
> microbundle build --raw --cwd l10n --tsconfig l10n/tsconfig.release.json
> [email protected] build:plugins
> microbundle build --raw --cwd plugins/selection --tsconfig plugins/selection/tsconfig.release.json
> [email protected] prebuild:themes
> sass src/theme/mermaid/index.scss dist/theme/mermaid.css
> [email protected] build:themes
> run-p build:themes-dev build:themes-prod
> [email protected] build:themes-dev
> postcss dist/theme/mermaid.css --output dist/theme/mermaid.css --env development --verbose
> [email protected] build:themes-prod
> postcss dist/theme/mermaid.css --output dist/theme/mermaid.min.css --env production --verbose
Processing dist\theme\mermaid.css...
Processing dist\theme\mermaid.css...
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Finished dist\theme\mermaid.css in 440 ms
Finished dist\theme\mermaid.css in 744 ms
(rpt2 plugin) Error: D:/git/gridjs/plugins/selection/src/rowSelection/rowSelection.tsx(3,71): semantic error TS2307: Cannot find module 'gridjs' or its corresponding type declarations.
Error: D:/git/gridjs/plugins/selection/src/rowSelection/rowSelection.tsx(3,71): semantic error TS2307: Cannot find module 'gridjs' or its corresponding type declarations.
at error (D:\git\gridjs\node_modules\rollup\dist\shared\rollup.js:198:30)
at throwPluginError (D:\git\gridjs\node_modules\rollup\dist\shared\rollup.js:21718:12)
at Object.error (D:\git\gridjs\node_modules\rollup\dist\shared\rollup.js:22672:20)
at Object.error (D:\git\gridjs\node_modules\rollup\dist\shared\rollup.js:21895:42)
at RollupContext.error (D:\git\gridjs\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:20259:30)
at D:\git\gridjs\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:29527:23
at Array.forEach (<anonymous>)
at printDiagnostics (D:\git\gridjs\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:29500:17)
at Object.transform (D:\git\gridjs\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:29785:17)
at D:\git\gridjs\node_modules\rollup\dist\shared\rollup.js:22879:40
ERROR: "build:plugins" exited with 1.
Expected behavior
The command npm run build should work out of the box, unless there are specific steps to run before. In that case, it should be documented in the read me file.
Screenshots
Desktop:
OS: Windows 10 Enterprise | 22H2
Browser: Chrome 118.0.5993.89 (Official Build) (64-bit) (though irrelevant in that case)
Version [e.g. 22] 6.0.6
Git version: version 2.39.2.windows.1
The text was updated successfully, but these errors were encountered:
Describe the bug
When installing from the git repository (not npm), the script npm run build fails. The error message is:
(rpt2 plugin) Error: D:/git/gridjs/plugins/selection/src/rowSelection/rowSelection.tsx(3,71): semantic error TS2307: Cannot find module 'gridjs' or its corresponding type declarations. Error: D:/git/gridjs/plugins/selection/src/rowSelection/rowSelection.tsx(3,71): semantic error TS2307: Cannot find module 'gridjs' or its corresponding type declarations.
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/grid-js/gridjs.git
cd gridjs
npm run build
Expected behavior
The command npm run build should work out of the box, unless there are specific steps to run before. In that case, it should be documented in the read me file.
Screenshots
Desktop:
The text was updated successfully, but these errors were encountered: