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
This error is thrown only on Node 6, only when using rollup-plugin-node-resolve, and only when using browser: true. Those three conditions need to be met in order to reproduce this bug.
The offending line of of code is in node-browser-resolve (opts.filename is undefined), so it's possible this bug doesn't exist here but rather in that repo. I wasn't sure, so I'm filing it here.
TypeError: Path must be a string. Received undefined
at assertPath (path.js:7:11)
at Object.dirname (path.js:1324:5)
at resolve (/Users/nolan/Desktop/repro-rollup-bug/node_modules/browser-resolve/index.js:218:21)
...
This error is thrown only on Node 6, only when using
rollup-plugin-node-resolve, and only when usingbrowser: true. Those three conditions need to be met in order to reproduce this bug.The offending line of of code is in node-browser-resolve (
opts.filenameis undefined), so it's possible this bug doesn't exist here but rather in that repo. I wasn't sure, so I'm filing it here.I have a gist to reproduce.
Steps:
The error received is: