Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get __dirname to work #1

Open
kuraga opened this issue Nov 15, 2019 · 0 comments
Open

Can't get __dirname to work #1

kuraga opened this issue Nov 15, 2019 · 0 comments

Comments

@kuraga
Copy link

kuraga commented Nov 15, 2019

When I'm trying to use __dirname I get:

(node:2824) UnhandledPromiseRejectionWarning: Error: Could not load node-polyfills:dirname (imported by /home/sasha/rotorjs/node_modules/tman/lib/tman.js): Path must be a string without null bytes
    at /home/sasha/rotorjs/node_modules/rollup/dist/rollup.js:21718:19
    at <anonymous>

Null byte (\0) is really in these lines. It was introduced in calvinmetcalf/rollup-plugin-node-globals#3 .

See also: calvinmetcalf/rollup-plugin-node-globals#23 .

P.S. Thanks for the fork! :)

/cc @manucorporat

jokester added a commit to jokester/rollup-plugin-node-polyfills that referenced this issue Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant