node-webshot icon indicating copy to clipboard operation
node-webshot copied to clipboard

`primordials` is not defined - Node v12

Open JMTK opened this issue 6 years ago • 4 comments

ReferenceError: primordials is not defined
    at fs.js:27:35
    at req_ (node_modules/natives/index.js:143:24)
    at Object.req [as require] (node_modules/natives/index.js:55:10)
    at Object.<anonymous> (node_modules/webshot/node_modules/graceful-fs/fs.js:1:37)

I'm using the webshot modules but it's the inner workings of the graceful-fs. I tried upgrading it to 4.x and it works fine so I think that's the ticket

JMTK avatar May 02 '19 01:05 JMTK

I can confirm this fixes the issue.

Created a PR to fix this: https://github.com/brenden/node-webshot/pull/243

zoness32 avatar Jun 18 '19 21:06 zoness32

Seems like the project is not being updated since 2016. So I have created a project clone solving this issue.

GitHub - https://github.com/architjn/node-webshot npmjs - https://www.npmjs.com/package/webshot-node

architjn avatar Nov 11 '19 09:11 architjn

Seems like the project is not being updated since 2016. So I have created a project clone solving this issue.

GitHub - https://github.com/architjn/node-webshot npmjs - https://www.npmjs.com/package/webshot-node

Amazing, it works perfectly. Thank you

juanpmd avatar Mar 24 '20 20:03 juanpmd

Seems like the project is not being updated since 2016. So I have created a project clone solving this issue.

GitHub - https://github.com/architjn/node-webshot npmjs - https://www.npmjs.com/package/webshot-node

Thank you amazing work

itzBawantha avatar Jun 23 '20 14:06 itzBawantha