cubehouse / themeparks

Unofficial API for accessing ride wait times and schedules for Disneyland, Disney World, Universal Studios, and many more parks
MIT License
540 stars 126 forks source link

Dependency and loader issues #191

Closed aprTaylor closed 5 years ago

aprTaylor commented 5 years ago

Park Which park/resort has this issue? N/A

Context

How to find your themeparks version: Linux: npm list --depth=0 | grep themeparks Windows CMD: npm list | find "themeparks" PowerShell: npm list | sls themeparks

Describe the bug After installing via npm and requiring the library in the project, there is a lot of dependencies missing. This is what appears in the terminal: image

Even after manually installing the dependencies webpack warns of dependencies as expressions: image

It also warns about missing loaders: image

Output Sample output with NODE_DEBUG=themeparks environment variable set. Eg. if this is an issue with a specific park, run the following to run an online test of that park with debugging enabled: PARKID=WaltDisneyWorldMagicKingdom NODE_DEBUG=themeparks PRINTDATA=true npm run testonline

No addition output with environment variable.

I would really like to use this, but I cannot figure out how to get it to work.

cubehouse commented 5 years ago

Are you trying to include this in a frontend? That is my guess from your screenshots trying to webpack a server-side library.

This library only works with NodeJS, and is not designed for web/app clients.