cogent-js icon indicating copy to clipboard operation
cogent-js copied to clipboard

Module not found: Can't resolve './Query'

Open Armalon opened this issue 4 years ago • 11 comments

Failed to compile. Module not found: Can't resolve './Query' in './node_modules/cogent-js/build'

Armalon avatar Sep 18 '20 13:09 Armalon

Thank you for this fix though: "Update fields filter to include model"!

Armalon avatar Sep 18 '20 13:09 Armalon

The error above can be seen when this module is used as a part or the React app. If you run it separately like in the README.md file then you can see the following:

internal/modules/cjs/loader.js:968 throw err; ^

Error: Cannot find module '@babel/runtime/helpers/interopRequireDefault' Require stack:

  • /home/armalon/projects/innoscripta/test/node_modules/cogent-js/build/index.js
  • /home/armalon/projects/innoscripta/test/index.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15) at Function.Module._load (internal/modules/cjs/loader.js:841:27) at Module.require (internal/modules/cjs/loader.js:1025:19) at require (internal/modules/cjs/helpers.js:72:18) at Object. (/home/armalon/projects/innoscripta/test/node_modules/cogent-js/build/index.js:3:30) at Module._compile (internal/modules/cjs/loader.js:1137:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10) at Module.load (internal/modules/cjs/loader.js:985:32) at Function.Module._load (internal/modules/cjs/loader.js:878:14) at Module.require (internal/modules/cjs/loader.js:1025:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/armalon/projects/innoscripta/test/node_modules/cogent-js/build/index.js', '/home/armalon/projects/innoscripta/test/index.js' ] }

Armalon avatar Sep 18 '20 13:09 Armalon

Same issue. Any movement on this?

brentjett avatar Jan 04 '21 04:01 brentjett

Same problem here, any update?

tommy70404 avatar Jan 14 '21 06:01 tommy70404

Same problem here, by the meantime I copied your files directly in my project.

acabreragnz avatar Jan 15 '21 17:01 acabreragnz

I'll take a look at this today sorry guys. Will investigate and see what is going on.

joelwmale avatar Feb 26 '21 05:02 joelwmale

This appears to be because when the command 'babel src -d build' is run when installing the package, it fails to copy over Query.js and Parser.js into the build folder. I don't know enough about why this is happening to submit a PR.

jimtaylor123 avatar Mar 30 '21 12:03 jimtaylor123

Thanks for the great package @joelwmale. I also appear to be having the same issue with an unresolvable './Query'

ERROR in ./node_modules/cogent-js/build/index.js 15:36-54

boxxroom avatar Sep 20 '21 13:09 boxxroom

Can anyone create a PR to fix this issue?

joelwmale avatar Sep 25 '21 02:09 joelwmale

Same issue, any update?

steveerg avatar May 18 '22 09:05 steveerg

Are there any updates with this?

teetlaja avatar Aug 12 '22 21:08 teetlaja

yo any updates?

ankur99 avatar Apr 24 '23 09:04 ankur99

Use this as replacement, works fine. https://github.com/coderello/js-query-builder

harryqt avatar Apr 24 '23 09:04 harryqt

Thanks @Dibbyo456. Sorry guys, I just don't have time to maintain this anymore.

joelwmale avatar Apr 26 '23 03:04 joelwmale