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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modules import #672

Closed
joacub opened this issue Jun 3, 2022 · 1 comment
Closed

Modules import #672

joacub opened this issue Jun 3, 2022 · 1 comment

Comments

@joacub
Copy link

joacub commented Jun 3, 2022

Hi! 馃憢

Firstly, thanks for your work on this project! 馃檪

Today I used patch-package to patch feathers-hooks-common@6.1.1 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/feathers-hooks-common/dist/index.mjs b/node_modules/feathers-hooks-common/dist/index.mjs
index 7ecf617..03d1cbe 100644
--- a/node_modules/feathers-hooks-common/dist/index.mjs
+++ b/node_modules/feathers-hooks-common/dist/index.mjs
@@ -42,7 +42,9 @@ function actOn(what, ...hooks2) {
 }
 
 // src/hooks/alter-items.ts
-import { BadRequest } from "@feathersjs/errors";
+import errors from "@feathersjs/errors";
+
+const { BadRequest } = errors;
 
 // src/common/pluck.ts
 import _pick from "lodash/pick";

This issue body was partially generated by patch-package.

@fratzinger
Copy link
Collaborator

duplicate of #673

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