-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Getting this error when doing npm build
:
Could not load C:<Path-To-My-App>\node_modules@okrad\svelte-progressbar\index.mjs (imported by src/App.svelte): ENOENT: no such file or directory, open 'C:<Path-To-My-App>\node_modules@okrad\svelte-progressbar\index.mjs'
To reproduce:
- npx degit sveltejs/template app
- node scripts/setupTypeScript.js
- npm i
- npm i @okrad/svelte-progressbar
Modify main.ts
import App from './App.svelte';
const app = new App({
target: document.body,
props: {
name: 'world',
series: [{ perc: 20 }, { perc: 42 }]
}
});
export default app;
Modify App.svelte
<script lang="ts">
import type { Series } from "@okrad/svelte-progressbar";
import ProgressBar from "@okrad/svelte-progressbar";
export let name: string;
export let series: Series[] = [];
</script>
<main>
<h1>Hello {name}!</h1>
<p>
Visit the <a href="https://svelte.dev/tutorial">Svelte tutorial</a> to learn
how to build Svelte apps.
</p>
<ProgressBar {series} />
</main>
Finally run npm run build
Metadata
Metadata
Assignees
Labels
No labels