saasforge / open-source-saas-boilerpate

Free SaaS boilerplate (Python/PostgreSQL/ReactJS/Webpack)
https://www.saasforge.dev
MIT License
816 stars 120 forks source link

Wrong jsonpath imported in src/app/dashboard/DashboardShell.jsx #4

Closed s13cre13t closed 4 years ago

s13cre13t commented 4 years ago

import jsonpath from 'jsonPath';

should be

import jsonpath from 'jsonpath';

otherwise receiving error during npm run dev

npm -v 5.8.0 ubuntu 19.10

ERROR in ./src/app/dashboard/DashboardShell.jsx
Module not found: Error: Can't resolve 'jsonPath' in '/saasForge/src/app/dashboard'
resolve 'jsonPath' in '/saasForge/src/app/dashboard'
  Parsed request is a module
  using description file: /saasForge/package.json (relative path: ./src/app/dashboard)
    Field 'browser' doesn't contain a valid alias configuration
    resolve as module
      /saasForge/src/app/dashboard/node_modules doesn't exist or is not a directory
      /saasForge/src/app/node_modules doesn't exist or is not a directory
      /saasForge/src/node_modules doesn't exist or is not a directory
      /node_modules doesn't exist or is not a directory
      /node_modules doesn't exist or is not a directory
      looking for modules in /saasForge/node_modules
        using description file: /saasForge/package.json (relative path: ./node_modules)
          Field 'browser' doesn't contain a valid alias configuration
          using description file: /saasForge/package.json (relative path: ./node_modules/jsonPath)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /saasForge/node_modules/jsonPath doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /saasForge/node_modules/jsonPath.js doesn't exist
            .jsx
              Field 'browser' doesn't contain a valid alias configuration
              /saasForge/node_modules/jsonPath.jsx doesn't exist
            .css
              Field 'browser' doesn't contain a valid alias configuration
              /saasForge/node_modules/jsonPath.css doesn't exist
            as directory
              /saasForge/node_modules/jsonPath doesn't exist
[/saasForge/src/app/dashboard/node_modules]
[/saasForge/src/app/node_modules]
[/saasForge/src/node_modules]
[/node_modules]
[/node_modules]
[/saasForge/node_modules/jsonPath]
[/saasForge/node_modules/jsonPath.js]
[/saasForge/node_modules/jsonPath.jsx]
[/saasForge/node_modules/jsonPath.css]
 @ ./src/app/dashboard/DashboardShell.jsx 17:0-32 116:18-26
 @ ./src/app/dashboard/DashboardApp.jsx
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! saasbuild@1.0.0 dev: `webpack --config webpack.dev.js`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the saasbuild@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/s13ecre13t/.npm/_logs/2019-12-19T22_21_54_502Z-debug.log
saasforge commented 4 years ago

Fixed in https://github.com/saasforge/open-source-saas-boilerpate/commit/2838a698c7cab5ecbf358dce3d29251fe705643a Thanks!