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

TypeError: rowData[hd.name].replace is not a function #1

Open
frdmn opened this issue Oct 25, 2016 · 0 comments
Open

TypeError: rowData[hd.name].replace is not a function #1

frdmn opened this issue Oct 25, 2016 · 0 comments

Comments

@frdmn
Copy link

frdmn commented Oct 25, 2016

I am using markdown-tableify in my project "top-atom-packages" and ran into the following error:

Scraping results page 1...
Finished scraping
/Users/jonas/Development/170_trending-atom-packages/node_modules/markdown-tableify/index.js:25
    let $tds = config.headers.map(hd => `${(rowData[hd.name].replace(/[\n]/g, ' ') || '') || ''}`);
                                                             ^

TypeError: rowData[hd.name].replace is not a function
    at config.headers.map.hd (/Users/jonas/Development/170_trending-atom-packages/node_modules/markdown-tableify/index.js:25:62)
    at Array.map (native)
    at $rows.concat.data.map.rowData (/Users/jonas/Development/170_trending-atom-packages/node_modules/markdown-tableify/index.js:25:31)
    at Array.map (native)
    at module.exports (/Users/jonas/Development/170_trending-atom-packages/node_modules/markdown-tableify/index.js:24:29)
    at /Users/jonas/Development/170_trending-atom-packages/index.js:73:17
    at /Users/jonas/Development/170_trending-atom-packages/node_modules/async/dist/async.js:988:16
    at /Users/jonas/Development/170_trending-atom-packages/node_modules/async/dist/async.js:5096:18
    at apply (/Users/jonas/Development/170_trending-atom-packages/node_modules/async/dist/async.js:41:25)
    at /Users/jonas/Development/170_trending-atom-packages/node_modules/async/dist/async.js:76:12

When using the following code: frdmn/top-atom-packages@f49db59

(PR incoming)

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