captcha-canvas icon indicating copy to clipboard operation
captcha-canvas copied to clipboard

Cannot find module 'XXX/../package.json'

Open webrsb opened this issue 10 months ago • 2 comments

I try to bundle with webpack and show this error:

uncaught Error Error: Cannot find module 'XXX/../package.json'
    at webpackEmptyContext (XXX\main.js:71350:10)
    at eval (repl:1:26)

It seen webpack don't bundle directory. https://github.com/Shashank3736/captcha-canvas/blob/1f95ac7bf34fc1574702281859a1365efcd03f2e/ts-script/index.ts#L7 Is it really needed? Thanks.

webrsb avatar Apr 01 '24 06:04 webrsb

Nope it's not needed I just added this at the start of the project to allow people access to the version of captcha module they are using. Thank you for reporting this.

Shashank3736 avatar Apr 01 '24 10:04 Shashank3736

Removed the version const from the module now... in v3.2.2

Shashank3736 avatar Apr 01 '24 18:04 Shashank3736