Skip to content

Windows build issues #940

@IG-88-2

Description

@IG-88-2

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions