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
{{ message }}
Repository navigation
Uncaught error (sync nor async) if main field is not a string #178
git clone https://gist.github.com/14c93c133d9657411e95959e22e32570.git main-is-not-a-string
cd main-is-not-a-string
npm i
node resolve-material-design-iconic-font.js
path.js:39
throw new ERR_INVALID_ARG_TYPE('path', 'string', path);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object
at assertPath (path.js:39:11)
at Object.resolve (path.js:168:7)
at \Dev\browserify-resolve-zavoloklom-material-design-iconic-font-issue-111\node_modules\resolve\lib\async.js:164:37
at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
Expected:
Error should be caught in callback or in catch
Activity
unlight commentedon Dec 13, 2018
main for this package is:
ljharb commentedon Dec 13, 2018
@unlight either way, that package is broken; main can only be a string. I’d file a bug on that package.
unlight commentedon Dec 13, 2018
The question is how can I detect that package is broken.
ljharb commentedon Dec 13, 2018
For sure, I definitely think this is a bug :-)
ljharb commentedon Dec 13, 2018
Thanks for the perfect repro - a fix will be merged shortly, and included in the next release.
[Fix] `sync`/`async`: when package.json `main` is not a string, throw…
[Fix] `sync`/`async`: when package.json `main` is not a string, throw…
[Fix] `sync`/`async`: when package.json `main` is not a string, throw…
v1.9.0
[Fix] `sync`/`async`: when package.json `main` is not a string, throw…
v1.10.0