Giter VIP home page Giter VIP logo

math's Introduction

a6kme

My e-Home in the Cybernet

JSS

This project uses JSS.

Run and Install

  1. Open the project as dev container in VSCode. This will ensure that correct node versions are installed using Dockerfile
  2. Run npm install
  3. Run npm run dev

Add a new article

  1. Add the abstract of the article in pages/articles/index.jsx
  2. Add corresponding content in content/url-of-the-page.md

A page in articles/<page_url>.jsx will be automatically created ToDo: Automate step 2 also

math's People

Contributors

a6kme avatar

math's Issues

PeerDependency is not defined

  • Getting error of lodash is not defined despite it being present in the node_modules folder of client
lodash is not defined
ReferenceError: lodash is not defined
    at Object.<anonymous> (/Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/node_modules/@a6kme/math/dist/math.js:1:1091)
    at e (/Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/node_modules/@a6kme/math/dist/math.js:1:182)
    at Module.<anonymous> (/Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/node_modules/@a6kme/math/dist/math.js:1:1145)
    at e (/Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/node_modules/@a6kme/math/dist/math.js:1:182)
    at /Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/node_modules/@a6kme/math/dist/math.js:1:981
    at Object.<anonymous> (/Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/node_modules/@a6kme/math/dist/math.js:1:990)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.@a6kme/math (/Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/.next/server/static/development/pages/calculator.js:2517:18)
    at __webpack_require__ (/Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/.next/server/static/development/pages/calculator.js:23:31)
    at Module../pages/calculator.jsx (/Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/.next/server/static/development/pages/calculator.js:1341:69)
    at __webpack_require__ (/Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/.next/server/static/development/pages/calculator.js:23:31)
    at Object.3 (/Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/.next/server/static/development/pages/calculator.js:2505:18)
    at __webpack_require__ (/Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/.next/server/static/development/pages/calculator.js:23:31)
    at /Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/.next/server/static/development/pages/calculator.js:91:18
    at Object.<anonymous> (/Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/.next/server/static/development/pages/calculator.js:94:10)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.requirePage (/Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/node_modules/next-server/dist/server/require.js:31:12)
    at Object.loadComponents (/Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/node_modules/next-server/dist/server/load-components.js:15:34)
    at DevServer.renderToHTMLWithComponents (/Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/node_modules/next-server/dist/server/next-server.js:224:48)
    at DevServer.renderToHTML (/Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/node_modules/next-server/dist/server/next-server.js:236:37)
    at DevServer.renderToHTML (/Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/node_modules/next/dist/server/next-dev-server.js:101:22)

Not able to install @a6kme/math as a dependency

Library installation fails, since the install hook tries to run jest which is not present in the client

> @a6kme/[email protected] install /Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/node_modules/@a6kme/math
> npm run test


> @a6kme/[email protected] test /Users/abhishekkumar/EarlySalary/WebJourney/esnextjswebjourney/node_modules/@a6kme/math
> jest

sh: jest: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! @a6kme/[email protected] test: `jest`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the @a6kme/[email protected] test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/abhishekkumar/.npm/_logs/2019-04-17T11_16_42_094Z-debug.log
npm WARN [email protected] requires a peer of jss@^9.7.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of jss@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of jss@^9.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of jss@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of jss@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of jss@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of preact@* but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of jss@^9.7.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of jss@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of jss@^9.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of jss@^9.7.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of jss@^9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @a6kme/[email protected] install: `npm run test`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @a6kme/[email protected] install 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!     /Users/abhishekkumar/.npm/_logs/2019-04-17T11_16_42_632Z-debug.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.