Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows build issues #940

Open
IG-88-2 opened this issue Aug 28, 2018 · 0 comments
Open

Windows build issues #940

IG-88-2 opened this issue Aug 28, 2018 · 0 comments
Labels

Comments

@IG-88-2
Copy link
Contributor

IG-88-2 commented Aug 28, 2018

Hey guys, i'm experiencing some minor problems building on windows.
1)"npm run build" produces:
"'rm' is not recognized as an internal or external command"
2)"npm run test" produces

basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
SyntaxError: missing ) after argument list
(i changed it to "babel-node --inspect ./tests/index.js")

3)"npm run lint" generates line-breaks errors (see screenshot)
lint-error
Adding "linebreak-style": ["error", "windows"] to "rules" object in both .eslintrc files fixing it but build will fail on travis with previously mentioned error (line-breaks).
4)Running "npm run build" inside showcase folder produces:
'NODE_ENV' is not recognized as an internal or external command,
(i changed it to "set NODE_ENV=production&&.\node_modules\.bin\webpack")
5)I'm unable to build showcase on windows, for some reason paths resolution doesnt work,
before

i've tried to create alias inside webpack config which will point to outer index.js

 resolve: {
    alias: {
      // 'index':path.join(__dirname,'..', 'src', 'index.js'),
      // 'theme':path.join(__dirname,'..', 'src', 'theme.js')
    }
  },

but now it generates different list of errors,
after

I have been able to fix all problems except last one, maybe somebody knows some quick fix, otherwise i will have to create alias for each file in src. Thank you!

talc23 added a commit to talc23/react-vis that referenced this issue Apr 5, 2019
talc23 added a commit to talc23/react-vis that referenced this issue Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants