Shashank3736 / captcha-canvas

A captcha generator by using skia-canvas.
https://captcha-canvas.js.org
Apache License 2.0
61 stars 12 forks source link

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

Closed webrsb closed 2 months ago

webrsb commented 6 months ago

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.

Shashank3736 commented 6 months ago

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 commented 6 months ago

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