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

[Q] Read csv from static folder #3

Open
kevardila opened this issue Jun 29, 2023 · 0 comments
Open

[Q] Read csv from static folder #3

kevardila opened this issue Jun 29, 2023 · 0 comments

Comments

@kevardila
Copy link

I have a csv file inside my svelteKit static folder, to read it I had to configure svelte.config.js by adding parameters to the server object. The project runs correctly with npm run dev, and allows me to create npm run dev successfully. The problem is when I run the electron application, because it does not recognize the url of the fetch that refers to the csv file.

The error is as follows: electron: Failed to load URL: file:///C:/parse with error: ERR_FILE_NOT_FOUND

I know it must be a routing configuration and I appreciate any help you can give me.

PD: The csv file is in the static folder so that when the build is done the file is part of the output of the build. I assumed that this way it will be correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant