You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi folks, I'm having some trouble running assertive-ts/core in a browser environment. I thought this was possible but maybe I'm misunderstanding something?
This library is designed to work in the browser and in Node.js.
I'm trying to use this in a Cloudflare Worker, which is a v8 environment, but when I test locally I receive this error
✘ [ERROR] Build failed with 2 errors:
✘ [ERROR] Could not resolve "assert/strict"
node_modules/@assertive-ts/core/dist/index.js:11:23:
11 │ var strict_1 = require("assert/strict");
Which seems like a dependency on node's assert... although I'm probably mistaken about this.
In any case, could somebody potentially lend a hand and explain how the library is meant to be used in a browser? thanks!
Hi @asimpletune.
Currently, assertive does not include browser support 😞. However, we are considering adding it in the future. Apologies for any confusion, and thank you for your patience!
Let us know if you have any other questions or suggestions.
Activity
suany0805 commentedon Apr 3, 2025
Hi @asimpletune.
Currently, assertive does not include browser support 😞. However, we are considering adding it in the future. Apologies for any confusion, and thank you for your patience!
Let us know if you have any other questions or suggestions.
Update README.md
asimpletune commentedon Apr 3, 2025
Got it @suany0805 . Just submitted a PR to remove browser support from the project's README #149 so the issue can be closed.