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

rollup error: Cannot read file .svelte-kit/tsconfig.json #69

Closed
milahu opened this issue Apr 27, 2022 · 5 comments
Closed

rollup error: Cannot read file .svelte-kit/tsconfig.json #69

milahu opened this issue Apr 27, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@milahu
Copy link
Contributor

milahu commented Apr 27, 2022

error

$ rollup --config rollup.config.bundle.js

src/lib/index.js → package/dist/jsoneditor.js...
(!) Plugin typescript: @rollup/plugin-typescript TS5083: Cannot read file '.svelte-kit/tsconfig.json'.
[!] (plugin typescript) Error: @rollup/plugin-typescript: Couldn't process compiler options

this file is missing

"extends": "./.svelte-kit/tsconfig.json",

fixed (?) by removing the line from tsconfig.json

@josdejong
Copy link
Owner

Thanks for reporting. What kind of setup do you have? A Svelte application or something else?

@milahu
Copy link
Contributor Author

milahu commented Apr 27, 2022

pardon my brevity. to reproduce:

cd $(mktemp -d)
git clone --depth 1 https://github.com/josdejong/svelte-jsoneditor
cd svelte-jsoneditor
npm install
npm run build

maybe you have a private .svelte-kit/tsconfig.json file?

@josdejong
Copy link
Owner

Thanks, I can reproduce this issue.

In a fresh clone of the project, the folder ./.svelte-kit doesn't exist: that is generated as soon as you run svelte-kit build or svelte-kit dev. So to fix this, something must trigger to initialize creation of this folder, before running the packaging with rollup. I've added running svelte-kit sync now in order to fix it.

@josdejong josdejong added the bug Something isn't working label Apr 27, 2022
@milahu
Copy link
Contributor Author

milahu commented Apr 27, 2022

also /.svelte-kit is in .gitignore

(but i guess thats ok)

@josdejong
Copy link
Owner

yes, that is on purpose, it contains generated output from the SvelteKit compiler

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

2 participants