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

'Uncaught Package not found fili' error when trying to use eeg-pipes 2.0.2 with muse-js example #23

Open
tanvach opened this issue May 9, 2018 · 4 comments

Comments

@tanvach
Copy link

tanvach commented May 9, 2018

I've been trying to use bufferFFT() example code with muse-js example (link).

How to replicate the issue:

  • Run yarn add eeg-pipes in muse-js directory
  • Add import { bufferFFT, alphaPower } from "eeg-pipes"; to top of main.ts file
  • After this line: client.eegReadings.subscribe(reading => {console.log(reading);});, add client.eegReadings.pipe(bufferFFT({ bins: 256 }), alphaPower()).subscribe(buffer => console.log(buffer));
  • Run yarn start and load http://localhost:4445/
  • Open js console and see Uncaught Package not found fili

@jdpigeon suggested to use v1.x. I've found v1.2.0 would give Uncaught Package not found babel-runtime error, but v1.1.0 seems to load fine.

@jdpigeon
Copy link
Contributor

We're taking a look at this. Can you confirm whether fili is in your project's node_modules folder and in the list of modules returned by npm list --prod?

@tanvach
Copy link
Author

tanvach commented May 16, 2018

Thank you, muse-js is using yarn:

> yarn list --prod
yarn list v1.5.1
├─ @types/[email protected]
├─ [email protected]
├─ [email protected]
│  ├─ dsp.js@^1.0.1
│  ├─ fili@^2.0.1
│  ├─ rxjs@^5.5.2
│  └─ [email protected]
│     └─ [email protected]
├─ [email protected]
├─ [email protected]
│  └─ tslib@^1.9.0
├─ [email protected]
└─ [email protected]
✨  Done in 0.53s

When I use npm install eeg-pipes it would break yarn start.

I double checked that indeed eeg-pipes is in node_modules

@tanvach
Copy link
Author

tanvach commented May 17, 2018

For cleaner way to reproduce this, I've created a repo here https://github.com/tanvach/muse-fft

It's a simple react app that imports muse-js and eeg-pipes. You can run using the usual npm install and npm start. This time, It throws a more informative fili related error.

screen shot 2018-05-16 at 5 33 06 pm

@tanvach
Copy link
Author

tanvach commented May 17, 2018

npm list --prod output

> npm list --prod
[email protected] /Users/tan_vachiramon/Codes/muse-fft
├── [email protected]
├─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected] deduped
│ └── [email protected] deduped
├── [email protected]
├─┬ [email protected]
│ ├── @types/[email protected]
│ └─┬ [email protected]
│   └── [email protected]
├─┬ [email protected]
...

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