quicktype icon indicating copy to clipboard operation
quicktype copied to clipboard

`lodash` is still referenced in the compiled output of the `quicktype-core` package

Open chaucerbao opened this issue 2 years ago • 3 comments

It seems like lodash is being referenced in the compiled (dist/) output. If you attempt to use the package, it will throw an error.

Error: Cannot find module 'lodash' Require stack:

  • node_modules/quicktype-core/dist/language/Dart.js
  • node_modules/quicktype-core/dist/language/All.js
  • node_modules/quicktype-core/dist/Run.js
  • node_modules/quicktype-core/dist/index.js

To replicate, start a new repo:

  1. npm install quicktype-core
  2. grep lodash node_modules/quicktype-core/dist/**/*.js

You'll find the line in dist/language/Dart.js

chaucerbao avatar Jul 08 '21 00:07 chaucerbao

It seems that https://github.com/quicktype/quicktype/commit/679b7bcd9d11fc06b449b16b200ae05a6307767f wasn't published to npm. @dvdsgl I'm sorry for pinging you here, but do you have power of publishing new working package?

talks2much avatar Nov 20 '21 00:11 talks2much

Is there a workaround for this other than forking?

agriffis avatar Jan 12 '22 23:01 agriffis

Is there a workaround for this other than forking?

Install lodash as a dependency npm i -D lodash

NemoStein avatar Mar 22 '22 04:03 NemoStein

#1870

dvdsgl avatar Jan 04 '23 15:01 dvdsgl