balderdashy / balderdashy/sails
Cannot use standalone sails-disk
- Dominant language
- JavaScript
- Stars
- 22.8k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
**Node version**: v12.13
**Sails version** _(sails)_: none
**DB adapter & version** _(e.g. sails-mysql@5.55.5)_: sails-disk
Hello all, I'm trying to use waterline + sails-disk but when I require/import the adapter from "sails-disk" I encounter two errors:
`Cannot find module '/machines/cp'`
Error [ImplementationError]: Could not find `cp`, one of the modules in `pkg.machinepack.machines`.
Does anyone have any ideas?
Cheers!
Contributor guide
Research direction
Reproduce the standalone waterline plus sails-disk import with Node v12.13 and inspect the adapter entry point around the reported `/machines/cp` and `pkg.machinepack.machines` errors. Done means the adapter can be required outside Sails without either error, with a regression check for that import path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend, database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100