question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lodash from devDependencies to dependencies in package.json

See original GitHub issue

I noticed that following:

"lodash.clonedeep": "^4.5.0",
"lodash.isarray": "^4.0.0",
"lodash.isobject": "^3.0.2",
"lodash.isplainobject": "^4.0.6",

Libraries are placed under devDependancies in package.json. These are used in the library and not only in development of the library. Could you move these under dependencies so it would automatically download them when using this library?

It output errors like: ERROR in ./node_modules/reactive-state/dist/store.js Module not found: Error: Can't resolve 'lodash.clonedeep' in '/Users/ron/Projects/test-project/node_modules/reactive-state/dist'

You can of course resolve the issue by installing them to your own project, but since it’s a dependancy of reactive-state it should be there. It did not complain about lodash.isarray, so maybe this is only used in the tests and could stay in devDependancies. Typings can also stay in devDependancies.

Are you btw using this in production already? Do you have any plans on develop any more in the future or do you see it as complete package?

Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Dynaloncommented, Oct 16, 2017

@stefyrosca This is now fixed starting version v0.2.2 (62d8166de0c74c2b4e9674c807ce5a043be8dd93)

0reactions
stefyroscacommented, Oct 16, 2017

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding dependencies to a package.json file - npm Docs
To add dependencies and devDependencies to a package.json file from the command line, you can install them in the root directory of your...
Read more >
The difference between dependencies and devDependencies ...
When you run npm install in the root of a project with a "package.json" file, all packages in both dependencies and devDependencies are ......
Read more >
node.js - What's the difference between dependencies ...
Dev dependencies are modules which are only required during development whereas dependencies are required at runtime. If you are deploying your application, ...
Read more >
Why do I need to split between dev and prod dependencies?
You would list Lodash as a peerDependency in your package.json file because it's something that your package needs in order to work, but...
Read more >
Difference between dependencies, devDependencies and ...
A dependency is a library that a project needs to function effectively. DevDependencies are the packages a developer needs during development. ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found