remix-run / indie-stack

The Remix Stack for deploying to Fly with SQLite, authentication, testing, linting, formatting, etc.
https://remix.run/stacks
MIT License
1.13k stars 315 forks source link

Creating a new remix project from this template fails #294

Closed joshfarrant closed 2 months ago

joshfarrant commented 3 months ago

Have you experienced this bug with the latest version of the template?

Yes

Steps to Reproduce

npx create-remix --template remix-run/indie-stack --yes

Expected Behavior

A project is successfully created from this template.

Actual Behavior


 remix   v2.11.2 💿 Let's build a better website...
      â—¼  Directory: Using test-remix as project directory

      â—¼  Template: Using remix-run/indie-stack...
      ✔  Template copied

      ✔  Dependencies installed

      ✔  Git initialized
      ✔  Dependencies for remix.init script installed

      â—¼  Running template's remix.init script...

> setup
> prisma generate && prisma migrate deploy && prisma db seed

Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma

✔ Generated Prisma Client (v5.18.0) to ./node_modules/@prisma/client in 35ms

Start by importing your Prisma Client (See: http://pris.ly/d/importing-client)

Tip: Easily identify and fix slow SQL queries in your app. Optimize helps you enhance your visibility: https://pris.ly/--optimize

Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": SQLite database "data.db" at "file:./data.db?connection_limit=1"

SQLite database data.db created at file:./data.db?connection_limit=1

1 migration found in prisma/migrations

Applying migration `20220713162558_init`

The following migration(s) have been applied:

migrations/
  └─ 20220713162558_init/
    └─ migration.sql

All migrations have been successfully applied.
Environment variables loaded from .env
Running seed command `ts-node -r tsconfig-paths/register prisma/seed.ts` ...
Database has been seeded. 🌱

🌱  The seed command has been executed.

> format
> prettier --write . --log-level warn

(node:31028) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
[error] Invalid configuration for file "/Users/joshfarrant/code/playground/remix/test-remix/.dockerignore":
[error] Unexpected token 'export'

      â–²  Oh no! Template's remix.init script failed

The issue was introduced by this commit https://github.com/remix-run/indie-stack/commit/63e5b5417424d4db2f467c7885f39551194ceb7d. I've verified this by running the same command against joshfarrant/indie-stack which has that commit reverted.