cli: Missing $lib/paraglide from skeleton project

When creating a project using bunx sv create new-project and selecting the options below, the app doesn’t run with error ENOENT: No such file or directory

This seems to be because the project doesn’t include the files necessary inside src/lib/paraglide which are referenced in the vite.config.ts file.
After commenting the paraglide plugin and the references in the project it can properly start.

┌  Welcome to the Svelte CLI! (v0.5.11)
│
◇  Which template would you like?
│  SvelteKit minimal
│
◇  Add type checking with Typescript?
│  Yes, using Typescript syntax
│
◆  Project created
│
◇  What would you like to add to your project? (use arrow keys / space bar)
│  prettier, eslint, vitest, playwright, tailwindcss, drizzle, lucia, paraglide
│
◇  tailwindcss: Which plugins would you like to add?
│  forms, container-queries, aspect-ratio
│
◇  drizzle: Which database would you like to use?
│  PostgreSQL
│
◇  drizzle: Which PostgreSQL client would you like to use?
│  Postgres.JS
│
◇  drizzle: Do you want to run the database locally with docker-compose?
│  Yes
│
◇  lucia: Do you want to include a demo? (includes a login/register page)
│  Yes
│
◇  paraglide: Which languages would you like to support? (e.g. en,de-ch)
│  es,en
│
◇  paraglide: Do you want to include a demo?
│  Yes
│
◇  Which package manager do you want to install dependencies with?
│  bun

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 16 (11 by maintainers)

Most upvoted comments

Since this issue hasn’t been reported in quite some time, i will close this. Please let me know if this happens again.

i still believe it should be more straightforward/simple to use inlang plugins from npm.

you could either make both ways first class citizens or change the internal/web usage to sth like esm.sh which even supports import maps. https://esm.sh/#docs.

you can load the inlang plugins from node_modules via fs path instead. just install the packages for them as devDependency.