0wczar / airframe-react

Free Open Source High Quality Dashboard based on Bootstrap 4 & React 16: http://dashboards.webkom.co/react/airframe
https://airframe-react-lime.vercel.app
MIT License
3.94k stars 715 forks source link

Not building/working on Windows 10 / Node 10 #40

Open 26medias opened 3 years ago

26medias commented 3 years ago

Hi,

There are 2 majors issues on windows 10 that prevents this repo from running, I'm hoping somebody has a solution:

While I'll probably figure out the dependency issue, I have no idea where to start to have Chokidar monitor from the root of the repo rather than my entire drive. Any help would be most welcome!

Here are the steps I took to setup:

Here's the output showing both issues:

C:\code\react\airframe-react>npm start

> airframe-dashboard@0.1.0 start C:\code\react\airframe-react
> npm run start:dev

> airframe-dashboard@0.1.0 start:dev C:\code\react\airframe-react
> node ./build/cli-tools.js --clear dist --create dist && webpack-dev-server --config ./build/webpack.config.client.dev.js

Cleared target directory: C:\code\react\airframe-react\dist
Created target directory: C:\code\react\airframe-react\dist
i 「wds」: Project is running at http://0.0.0.0:4100/
i 「wds」: webpack output is served from /
i 「wds」: Content not from webpack is served from C:\code\react\airframe-react\.serve
i 「wds」: 404s will fallback to /
WARNING: The `form-control-focus()` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 26 of node_modules/bootstrap/scss/mixins/_forms.scss, in mixin `form-control-focus`
         from line 199 of node_modules/@owczar/dashboard-style--airframe/scss/plugins/ag-grid/ag-theme-bootstrap.scss
         from line 2 of app/styles/plugins/_ag-grid.scss
         from line 1 of stdin

WARNING: The `form-control-focus()` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 26 of node_modules/bootstrap/scss/mixins/_forms.scss, in mixin `form-control-focus`
         from line 199 of node_modules/@owczar/dashboard-style--airframe/scss/plugins/ag-grid/ag-theme-bootstrap.scss
         from line 2 of app/styles/plugins/_ag-grid.scss
         from line 1 of stdin

× 「wdm」: Hash: 707a7b7d18b0d25cc382
Version: webpack 4.44.2
Time: 92044ms
Built at: 11/20/2020 9:07:03 PM
                          Asset       Size  Chunks             Chunk Names
                  app.bundle.js   46.6 MiB     app  [emitted]  app
                        app.css    1.1 MiB     app  [emitted]  app
  fonts/fontawesome-webfont.eot    162 KiB          [emitted]
  fonts/fontawesome-webfont.ttf    162 KiB          [emitted]
 fonts/fontawesome-webfont.woff   95.7 KiB          [emitted]
fonts/fontawesome-webfont.woff2   75.4 KiB          [emitted]
                     index.html   7.24 KiB          [emitted]
                   static/1.jpg   55.7 KiB          [emitted]
                  static/10.jpg   59.5 KiB          [emitted]
                  static/11.jpg     82 KiB          [emitted]
                  static/12.jpg   71.1 KiB          [emitted]
                  static/13.jpg   81.8 KiB          [emitted]
                  static/14.jpg   76.4 KiB          [emitted]
                  static/15.jpg   70.4 KiB          [emitted]
                  static/16.jpg   72.4 KiB          [emitted]
                  static/17.jpg   77.2 KiB          [emitted]
                  static/18.jpg   79.4 KiB          [emitted]
                  static/19.jpg   78.1 KiB          [emitted]
                   static/2.jpg     63 KiB          [emitted]
                  static/20.jpg   74.2 KiB          [emitted]
                  static/21.jpg   53.7 KiB          [emitted]
                  static/22.jpg   45.4 KiB          [emitted]
                  static/23.jpg   86.2 KiB          [emitted]
                  static/24.jpg   64.8 KiB          [emitted]
                  static/25.jpg   72.1 KiB          [emitted]
                  static/26.jpg   51.2 KiB          [emitted]
                  static/27.jpg   66.8 KiB          [emitted]
                  static/28.jpg   52.2 KiB          [emitted]
                  static/29.jpg     84 KiB          [emitted]
                   static/3.jpg     43 KiB          [emitted]
                  static/30.jpg   54.1 KiB          [emitted]
                  static/31.jpg   84.6 KiB          [emitted]
                  static/32.jpg   88.9 KiB          [emitted]
                  static/33.jpg   64.9 KiB          [emitted]
                  static/34.jpg   43.4 KiB          [emitted]
                  static/35.jpg   55.1 KiB          [emitted]
                  static/36.jpg   75.5 KiB          [emitted]
                  static/37.jpg   86.8 KiB          [emitted]
                  static/38.jpg   78.9 KiB          [emitted]
                  static/39.jpg   67.8 KiB          [emitted]
                   static/4.jpg   88.1 KiB          [emitted]
                  static/40.jpg   54.8 KiB          [emitted]
                  static/41.jpg   75.1 KiB          [emitted]
                  static/42.jpg   48.1 KiB          [emitted]
                  static/43.jpg   42.1 KiB          [emitted]
                  static/44.jpg   57.2 KiB          [emitted]
                  static/45.jpg   58.1 KiB          [emitted]
                  static/46.jpg   57.9 KiB          [emitted]
                  static/47.jpg   54.6 KiB          [emitted]
                  static/48.jpg   59.3 KiB          [emitted]
                  static/49.jpg   64.1 KiB          [emitted]
                   static/5.jpg   73.8 KiB          [emitted]
                  static/50.jpg   66.9 KiB          [emitted]
                   static/6.jpg   61.5 KiB          [emitted]
                   static/7.jpg   64.8 KiB          [emitted]
                   static/8.jpg   87.9 KiB          [emitted]
                   static/9.jpg     93 KiB          [emitted]
    static/apple-touch-icon.png   5.68 KiB          [emitted]
            static/avatar-1.jpg     63 KiB          [emitted]
       static/favicon-16x16.png  835 bytes          [emitted]
       static/favicon-32x32.png   1.15 KiB          [emitted]
             static/favicon.ico   14.7 KiB          [emitted]
 static/fontawesome-webfont.svg    434 KiB          [emitted]
             static/image-1.jpg    184 KiB          [emitted]
             static/image-2.jpg    393 KiB          [emitted]
         static/logo-danger.svg    3.2 KiB          [emitted]
         static/logo-indigo.svg    3.2 KiB          [emitted]
           static/logo-info.svg    3.2 KiB          [emitted]
           static/logo-pink.svg    3.2 KiB          [emitted]
        static/logo-primary.svg    3.2 KiB          [emitted]
         static/logo-purple.svg    3.2 KiB          [emitted]
        static/logo-success.svg    3.2 KiB          [emitted]
        static/logo-warning.svg    3.2 KiB          [emitted]
          static/logo-white.svg    3.2 KiB          [emitted]
         static/logo-yellow.svg    3.2 KiB          [emitted]
Entrypoint app = app.css app.bundle.js
[1] multi (webpack)-dev-server/client?http://0.0.0.0:4100 (webpack)/hot/dev-server.js ./app/index.js 52 bytes {app} [built]
[./app/components/App/index.js] 868 bytes {app} [built]
[./app/index.js] 352 bytes {app} [built]
[./node_modules/@babel/polyfill/lib/index.js] 686 bytes {app} [built]
[./node_modules/react-dom/index.js] 1.33 KiB {app} [built]
[./node_modules/react/index.js] 190 bytes {app} [built]
[./node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:4100] (webpack)-dev-server/client?http://0.0.0.0:4100 4.29 KiB {app} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.51 KiB {app} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.53 KiB {app} [built]
[./node_modules/webpack-dev-server/client/utils/createSocketUrl.js] (webpack)-dev-server/client/utils/createSocketUrl.js 2.91 KiB {app} [built]
[./node_modules/webpack-dev-server/client/utils/log.js] (webpack)-dev-server/client/utils/log.js 964 bytes {app} [built]
[./node_modules/webpack-dev-server/client/utils/reloadApp.js] (webpack)-dev-server/client/utils/reloadApp.js 1.59 KiB {app} [built]
[./node_modules/webpack-dev-server/client/utils/sendMessage.js] (webpack)-dev-server/client/utils/sendMessage.js 402 bytes {app} [built]
[./node_modules/webpack-dev-server/node_modules/strip-ansi/index.js] (webpack)-dev-server/node_modules/strip-ansi/index.js 161 bytes {app} [built]
[./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.59 KiB {app} [built]
    + 4222 hidden modules

ERROR in ./app/routes/Forms/Typeahead/components/utils.js
Module not found: Error: Can't resolve 'isomorphic-fetch' in 'C:\code\react\airframe-react\app\routes\Forms\Typeahead\components'
 @ ./app/routes/Forms/Typeahead/components/utils.js 10:0-37 14:9-14
 @ ./app/routes/Forms/Typeahead/components/AsynchronousSearching.js
 @ ./app/routes/Forms/Typeahead/components/index.js
 @ ./app/routes/Forms/Typeahead/Typeahead.js
 @ ./app/routes/Forms/Typeahead/index.js
 @ ./app/routes/index.js
 @ ./app/components/App/AppClient.js
 @ ./app/components/App/index.js
 @ ./app/index.js
 @ multi ./app/index.js
Child extract-css-chunks-webpack-plugin node_modules/css-loader/dist/cjs.js!node_modules/postcss-loader/src/index.js!app/styles/plugins/plugins.css:
    Entrypoint extract-css-chunks-webpack-plugin = *
    [./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src/index.js!./app/styles/plugins/plugins.css] ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src!./app/styles/plugins/plugins.css 1.66 KiB {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/css-loader/dist/cjs.js!./node_modules/rc-slider/assets/index.css] 5.8 KiB {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/css-loader/dist/cjs.js!./node_modules/react-big-calendar/lib/css/react-big-calendar.css] 12.7 KiB {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/css-loader/dist/cjs.js!./node_modules/react-bootstrap-typeahead/css/Typeahead-bs4.css] 1.04 KiB {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/css-loader/dist/cjs.js!./node_modules/react-bootstrap-typeahead/css/Typeahead.css] 4.16 KiB {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/css-loader/dist/cjs.js!./node_modules/react-datepicker/dist/react-datepicker.css] 23.4 KiB {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/css-loader/dist/cjs.js!./node_modules/react-grid-layout/css/styles.css] 1.3 KiB {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/css-loader/dist/cjs.js!./node_modules/react-quill/dist/quill.snow.css] 25.3 KiB {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/css-loader/dist/cjs.js!./node_modules/react-toggle/style.css] 3.3 KiB {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/css-loader/dist/runtime/api.js] 2.46 KiB {extract-css-chunks-webpack-plugin} [built]
Child extract-css-chunks-webpack-plugin node_modules/css-loader/dist/cjs.js!node_modules/postcss-loader/src/index.js!node_modules/sass-loader/dist/cjs.js??ref--8-3!app/styles/bootstrap.scss:
    Entrypoint extract-css-chunks-webpack-plugin = *
    [./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src/index.js!./node_modules/sass-loader/dist/cjs.js?!./app/styles/bootstrap.scss] ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src!./node_modules/sass-loader/dist/cjs.js??ref--8-3!./app/styles/bootstrap.scss 432 KiB {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/css-loader/dist/runtime/api.js] 2.46 KiB {extract-css-chunks-webpack-plugin} [built]
Child extract-css-chunks-webpack-plugin node_modules/css-loader/dist/cjs.js!node_modules/postcss-loader/src/index.js!node_modules/sass-loader/dist/cjs.js??ref--8-3!app/styles/components/float-grid.scss:
    Entrypoint extract-css-chunks-webpack-plugin = *
    [./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src/index.js!./node_modules/sass-loader/dist/cjs.js?!./app/styles/components/float-grid.scss] ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src!./node_modules/sass-loader/dist/cjs.js??ref--8-3!./app/styles/components/float-grid.scss 862 bytes {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/css-loader/dist/runtime/api.js] 2.46 KiB {extract-css-chunks-webpack-plugin} [built]
Child extract-css-chunks-webpack-plugin node_modules/css-loader/dist/cjs.js!node_modules/postcss-loader/src/index.js!node_modules/sass-loader/dist/cjs.js??ref--8-3!app/styles/components/theme-selector.scss:
    Entrypoint extract-css-chunks-webpack-plugin = *
    [./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src/index.js!./node_modules/sass-loader/dist/cjs.js?!./app/styles/components/theme-selector.scss] ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src!./node_modules/sass-loader/dist/cjs.js??ref--8-3!./app/styles/components/theme-selector.scss 320 bytes {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/css-loader/dist/runtime/api.js] 2.46 KiB {extract-css-chunks-webpack-plugin} [built]
Child extract-css-chunks-webpack-plugin node_modules/css-loader/dist/cjs.js!node_modules/postcss-loader/src/index.js!node_modules/sass-loader/dist/cjs.js??ref--8-3!app/styles/components/wizard.scss:
    Entrypoint extract-css-chunks-webpack-plugin = *
    [./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src/index.js!./node_modules/sass-loader/dist/cjs.js?!./app/styles/components/wizard.scss] ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src!./node_modules/sass-loader/dist/cjs.js??ref--8-3!./app/styles/components/wizard.scss 1.4 KiB {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/css-loader/dist/runtime/api.js] 2.46 KiB {extract-css-chunks-webpack-plugin} [built]
Child extract-css-chunks-webpack-plugin node_modules/css-loader/dist/cjs.js!node_modules/postcss-loader/src/index.js!node_modules/sass-loader/dist/cjs.js??ref--8-3!app/styles/main.scss:
    Entrypoint extract-css-chunks-webpack-plugin = *
    [./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src/index.js!./node_modules/sass-loader/dist/cjs.js?!./app/styles/main.scss] ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src!./node_modules/sass-loader/dist/cjs.js??ref--8-3!./app/styles/main.scss 302 KiB {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/css-loader/dist/runtime/api.js] 2.46 KiB {extract-css-chunks-webpack-plugin} [built]
Child extract-css-chunks-webpack-plugin node_modules/css-loader/dist/cjs.js!node_modules/postcss-loader/src/index.js!node_modules/sass-loader/dist/cjs.js??ref--8-3!app/styles/plugins/plugins.scss:
    Entrypoint extract-css-chunks-webpack-plugin = *
    [./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src/index.js!./node_modules/sass-loader/dist/cjs.js?!./app/styles/plugins/plugins.scss] ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src!./node_modules/sass-loader/dist/cjs.js??ref--8-3!./app/styles/plugins/plugins.scss 371 KiB {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/css-loader/dist/runtime/api.js] 2.46 KiB {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/css-loader/dist/runtime/getUrl.js] 830 bytes {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/font-awesome/fonts/fontawesome-webfont.eot] 75 bytes {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/font-awesome/fonts/fontawesome-webfont.eot?v=4.7.0] 75 bytes {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/font-awesome/fonts/fontawesome-webfont.svg?v=4.7.0] 76 bytes {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/font-awesome/fonts/fontawesome-webfont.ttf?v=4.7.0] 75 bytes {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/font-awesome/fonts/fontawesome-webfont.woff2?v=4.7.0] 77 bytes {extract-css-chunks-webpack-plugin} [built]
    [./node_modules/font-awesome/fonts/fontawesome-webfont.woff?v=4.7.0] 76 bytes {extract-css-chunks-webpack-plugin} [built]
Child html-webpack-plugin for "index.html":
     1 asset
    Entrypoint undefined = index.html
    [./node_modules/html-webpack-plugin/lib/loader.js!./app/index.html] 9.4 KiB {0} [built]
    [./node_modules/lodash/lodash.js] 530 KiB {0} [built]
    [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {0} [built]
    [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built]
i 「wdm」: Failed to compile.
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\DumpStack.log.tmp'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\swapfile.sys'
manuelemeka commented 3 years ago

I solved the issue by running npm install isomorphic-fetch

ianrae commented 3 years ago

Thanks, npm install isomorphic-fetch worked for me too.

NickJoannette commented 3 years ago

Same issue. Same fix. Thanks!

dineshbhardwaj commented 3 years ago

Can you change the issue name to include - "isomorphic-fetch".

As this is beyond the OS.