Coder Social home page Coder Social logo

Comments (6)

moishinetzer avatar moishinetzer commented on April 18, 2024 1
  "scripts": {
    "build": "run-s build:*",
    "build:css": "npm run generate:css -- --minify",
    "build:remix": "remix build",
    "dev": "run-p dev:*",
    "dev:css": "npm run generate:css -- --watch",
    "dev:remix": "node --require ./mocks ./node_modules/.bin/remix dev",
    "format": "prettier --write .",
    "generate:css": "tailwindcss -o ./app/styles/tailwind.css",
    "postinstall": "remix setup node",
    "lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
    "setup": "prisma migrate dev",
    "start": "remix-serve build",
    "start:mocks": "node --require ./mocks ./node_modules/.bin/remix-serve build",
    "test": "vitest",
    "test:e2e:dev": "start-server-and-test dev http://localhost:3000 \"cypress open\"",
    "pretest:e2e:run": "npm run build",
    "test:e2e:run": "cross-env PORT=8811 start-server-and-test start:mocks http://localhost:8811 \"cypress run\"",
    "typecheck": "tsc -b && tsc -b cypress",
    "validate": "run-p \"test -- --run\" lint typecheck test:e2e:run"
  },

My Scripts

$ npm run validate

> validate
> run-p "test -- --run" lint typecheck test:e2e:run


> test
> vitest "--run"


> lint
> eslint --cache --cache-location ./node_modules/.cache/eslint .

> pretest:e2e:run
> npm run build


> typecheck
> tsc -b && tsc -b cypress


> build
> run-s build:*


 RUN  v0.7.4 C:/Users/Moish/Documents/Github Repos/my-remix-app


> build:css
> npm run generate:css -- --minify


> generate:css
> tailwindcss -o ./app/styles/tailwind.css "--minify"


Done in 677ms.

> build:remix
> remix build

Building Remix app in production mode...
 √ app/utils.test.ts (2)

Test Files  1 passed (1)
     Tests  2 passed (2)
      Time  9.76s (in thread 8ms, 128585.79%)

Built in 2.7s

> test:e2e:run
> cross-env PORT=8811 start-server-and-test start:mocks http://localhost:8811 "cypress run"

1: starting server using command "npm run start:mocks"
and when url "[ 'http://localhost:8811' ]" is responding with HTTP status code 200
running tests using command "cypress run"


> start:mocks
> node --require ./mocks ./node_modules/.bin/remix-serve build  

🔶 Mock server running
SyntaxError: missing ) after argument list
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1027:15)      
    at Module._compile (node:internal/modules/cjs/loader:1063:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Object.newLoader (C:\Users\Moish\Documents\Github Repos\my-remix-app\node_modules\esbuild-register\dist\node.js:2262:9)  
    at Object.extensions..js (C:\Users\Moish\Documents\Github Repos\my-remix-app\node_modules\esbuild-register\dist\node.js:4801:24)
    at Module.load (node:internal/modules/cjs/loader:975:32)    
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47

Node.js v17.7.1
Error: server closed unexpectedly
    at ChildProcess.onClose (C:\Users\Moish\Documents\Github Repos\my-remix-app\node_modules\start-server-and-test\src\index.js:75:14)
    at ChildProcess.emit (node:events:527:28)
    at maybeClose (node:internal/child_process:1090:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
ERROR: "test:e2e:run" exited with 1.

Unfortunately this is the error.

from indie-stack.

kentcdodds avatar kentcdodds commented on April 18, 2024 1

I think I've fixed it now. Could you try again?

from indie-stack.

kentcdodds avatar kentcdodds commented on April 18, 2024

I think this should fix it: ab8566b

Could you verify that it's been fixed?

from indie-stack.

moishinetzer avatar moishinetzer commented on April 18, 2024

Heres a screen recording of the debugger:

New.Tab.mp4

from indie-stack.

kentcdodds avatar kentcdodds commented on April 18, 2024

Could you try the latest version of this stack with Node v16 (instead of v17 which is an unstable version of Node) and let me know whether that fixes the issue?

from indie-stack.

kentcdodds avatar kentcdodds commented on April 18, 2024

This is now being tracked in #20

from indie-stack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.