React-admin: run demo on Windows

Created on 18 Jul 2018  路  4Comments  路  Source: marmelab/react-admin

env:

Windows 10;
node: 10.5
yarn 1.7
react-admin: 2.1.2

use Powershell

steps:

  • clone
  • cd react-admin
  • yarn
  • cd ./example/demo
  • (set REACT_APP_DATA_PROVIDER=rest) ; (yarn start)

result:

Failed to compile
./src/fakeServer/graphql.js
Module not found: Can't resolve 'data-generator' in 'E:\code\work\react-admin\examples\demo\src\fakeServer'

I tried use absolute path, bu it seems so many package use this way...

How do I run this demo right?

PS: with ubuntu 18.04, it works fine.

enhancement

Most helpful comment

We decided to make it easier to work on this project on all platforms. We will convert all our makefile commands as package scripts and keep our precious makefile for people who can run it.

In the mean time, the easiest way (not the quickest though) is to install the Windows Subsystem for Linux and run sudo apt install make. You can then use all our makefile commands.

I reopen this issue until we make the migration to package scripts

All 4 comments

We don't have Windows, so if you're interested in running the project on that platform, feel free to modify our makefile and open a PR. But we won't support it, so I'm closing this issue.

@maicss
Have you tried by installing the Windows Subsystem for Linux ?

You get this error because running yarn is not enough. You have to build every project before running the demo. You can find the commands to do so inside the makefile

We decided to make it easier to work on this project on all platforms. We will convert all our makefile commands as package scripts and keep our precious makefile for people who can run it.

In the mean time, the easiest way (not the quickest though) is to install the Windows Subsystem for Linux and run sudo apt install make. You can then use all our makefile commands.

I reopen this issue until we make the migration to package scripts

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mbj36 picture mbj36  路  3Comments

nicgirault picture nicgirault  路  3Comments

kikill95 picture kikill95  路  3Comments

kdabir picture kdabir  路  3Comments

alukito picture alukito  路  3Comments