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

Cannot read property 'length' of undefined #105

Open
ehmicky opened this issue May 25, 2020 · 1 comment
Open

Cannot read property 'length' of undefined #105

ehmicky opened this issue May 25, 2020 · 1 comment

Comments

@ehmicky
Copy link
Contributor

ehmicky commented May 25, 2020

Some builds are showing the following error:

Cannot read property 'length' of undefined 
    /opt/buildhome/.netlify-build-plugins/node_modules/urltools/lib/index.js:8:35 Object.exports.getCommonPrefix
    /opt/buildhome/.netlify-build-plugins/node_modules/urltools/lib/index.js:42:32 exports.buildRootRelativeUrl
    /opt/buildhome/.netlify-build-plugins/node_modules/hyperlink/lib/getModifiedHref.js:24:14 getModifiedHref
    /opt/buildhome/.netlify-build-plugins/node_modules/hyperlink/lib/index.js:747:17 hyperlink
    internal/process/task_queues.js:62:5 runNextTicks
    internal/timers.js:429:9 processImmediate
    /opt/buildhome/.netlify-build-plugins/node_modules/netlify-plugin-checklinks/lib/index.js:46:5 async onPostBuild
    src/plugins/child/run.js:17:3 async Object.run
    src/plugins/child/main.js:38:38 async handleEvent
    src/plugins/ipc.js:97:9 async process.<anonymous>

The build logs do not show additional information, except that the checkExternal option was set to true.

Looks like this might be bug inside hyperlink? Do you know what the error might be?

@flossypurse
Copy link

This error is super frustrating.
We get this from time to time and never really know what is causing it.
Any way to start by adding some debug logs to figure out why this happens?

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

2 participants