ui-material-components icon indicating copy to clipboard operation
ui-material-components copied to clipboard

Repo build problems in Windows

Open timbell opened this issue 3 years ago • 3 comments
trafficstars

Trying and failing to build this repo under Windows. I do the following...

  • git clone https://github.com/nativescript-community/ui-material-components.git ui-material-components
  • cd ui-material-components
  • npm i --force (I get unable to resolve dependency tree without --force)
  • npm run setup
  • npm run buid.all.win

The build.all.win command gives the following output:

image

ns -v => 8.1.5

Are there some steps I'm missing?

timbell avatar Jan 18 '22 08:01 timbell

@timbell this is weird it seems like the tsconfig is not read correctly. I mean this is how it finds the other modules like @nativescript-community/ui-material-core. Not sure what s happeining there

farfromrefug avatar Jan 18 '22 08:01 farfromrefug

@farfromrefug I think there are more then one error in the monorepo config, I am about add a new property in BottomNavigationBar to select the default index and I have servral error on the build especially with android

npm ERR! code 1
npm ERR! path /Users/kefahbader/Sites/nativescript-project/ui-material-components/packages/core
npm ERR! command failed
npm ERR! command sh -c node postinstall.js

When I do npm run clean the postinstall.js it removed, then I need to create it manually then I run into a large error with webpack!

ui-material-components/node_modules/webpack/node_modules/schema-utils/dist/validate.js:105
    throw new _ValidationError.default(errors, schema, configuration);
    ^

ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
 - configuration.node should be one of these:

kefahB avatar Jan 24 '22 12:01 kefahB

I've found issu for both errors, it come from webpack.config.js it was with the version 4.2.1, I upgraded it with the new config and I falls on @timbell's error with tsconfig ! I'll investigate

kefahB avatar Jan 24 '22 12:01 kefahB