Coder Social home page Coder Social logo

Comments (5)

koalyptus avatar koalyptus commented on July 25, 2024 2

@danforbes @Mereep,
adding the PORT variable to the .env file at root:

EXTEND_ESLINT=true
PORT=8000

and modifying the start command in package.json to read:

...
  "scripts": {
    "start": "react-scripts start",
...

was enough to make it work under windows.

from substrate-front-end-template.

Mereep avatar Mereep commented on July 25, 2024

I could resolve the second issue by:

  • purging yarn cache
  • manually installing babel/helper-call-delegate using npm i @babel/helper-call-delegate
  • using npm install (instead of the documented yarn install)

However, I don't know if step 1 was necessary. Someone might go into details. However, the documentation should reflect that. Installling all of that tool chains is already quite a pain.

Also, I am not too much into those node package managers, but npm and yarn seem quite interchangeable. Why having the user install yarn when npm is doing the job?

from substrate-front-end-template.

JoshOrndorff avatar JoshOrndorff commented on July 25, 2024

So you have the UI running successfully now?

Did you try running yarn install and get an error? If so, please share the error. If you never ran that command, then I'm not surprised it didn't work, you have to install the dependencies first.

PORT=8000 react-scripts start works fine in bash on linux. Maybe it doesn't work on Windows. What shell are you using? cmd.exe? power shell? gitbash?

from substrate-front-end-template.

danforbes avatar danforbes commented on July 25, 2024

Yeah, I think this is Linux-type syntax for passing an environment variable into a command. It makes sense this would break on Windows. We may want to look into using a library like dotenv to help with this.

from substrate-front-end-template.

Mereep avatar Mereep commented on July 25, 2024

So you have the UI running successfully now?

yes

Did you try running yarn install and get an error?

I used yarn install, it installed successfully. Error happens after start.
However, after using npm install instead, I could start it afterwards

What shell are you using?

cmd

from substrate-front-end-template.

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.