miktam / sizeof

Get size of a JavaScript object

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Relative references must start with either "/", "./", or "../" giving runtime error when bundling with rollup.

emohankrishna opened this issue · comments

Uncaught (in promise) TypeError: Failed to resolve module specifier "buffer". Relative references must start with either "/", "./", or "../".

I am facing the above issue at runtime but while bundling with rollup in react project it was not giving any issue.

I checked the doc of buffer which is only dependency their mentioned "buffer/" while requiring instead of "buffer" to escape the conflict between node buffer module and npm node_module. This change worked for me.