balderdashy / balderdashy/sails

Cannot use standalone sails-disk

Open
#7,012 2 comments 0 reactions 0 assignees View on GitHub
help wanted sails-disk try this out please
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.