Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add lodash as dependency in package.json #104

Closed
Sejmou opened this issue Jul 26, 2023 · 1 comment
Closed

add lodash as dependency in package.json #104

Sejmou opened this issue Jul 26, 2023 · 1 comment

Comments

@Sejmou
Copy link

Sejmou commented Jul 26, 2023

Hi there,

it looks like lodash is not just a dev dependency but a runtime dependency of Ableton.js. When I do

import { Ableton } from 'ableton-js';

async function main() {
  ....
  const ableton = new Ableton();
  await ableton.start()
  ...
}

I get a MODULE_NOT_FOUND error (Error: Cannot find module 'lodash'). After installing lodash, everything works fine.

I think updating the package.json accordingly should fix this for all users of the library.

Best regards,
Samo

@leolabs
Copy link
Owner

leolabs commented Jul 27, 2023

Thanks, that's a good catch! I just published a new version that adds lodash as a regular dependency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants