Comments (6)
I have this error
code from https://github.com/gajus/table/blob/master/.SANDBOX/test-streaming.js
/home/n00/sbots/steambot_slave/node_modules/table/dist/drawBorder.js:20
const columns = columnSizeIndex.map(size => {
^
TypeError: columnSizeIndex.map is not a function
at drawBorder (/home/n00/sbots/steambot_slave/node_modules/table/dist/drawBorder.js:20:35)
at drawBorderTop (/home/n00/sbots/steambot_slave/node_modules/table/dist/drawBorder.js:41:10)
at create (/home/n00/sbots/steambot_slave/node_modules/table/dist/createStream.js:85:43)
at Object.write (/home/n00/sbots/steambot_slave/node_modules/table/dist/createStream.js:151:16)
at Timeout.setInterval [as _onTimeout] (/home/n00/sbots/steambot_slave/slave.js:29:12)
at ontimeout (timers.js:466:11)
at tryOnTimeout (timers.js:304:5)
at Timer.listOnTimeout (timers.js:267:5)
```
from table.
I have the same error with the code from README.md:
const { createStream } = require("table")
let config, stream
config = {
columnDefault: {
width: 50
},
columnCount: 1
}
stream = createStream(config)
setInterval(() => {
stream.write([new Date()])
}, 500)
Output:
maxblock@mbp t3 $ node index.js
/Users/maxblock/projects/tmp/t3/node_modules/table/dist/drawBorder.js:20
const columns = columnSizeIndex.map(size => {
^
TypeError: columnSizeIndex.map is not a function
at drawBorder (/Users/maxblock/projects/tmp/t3/node_modules/table/dist/drawBorder.js:20:35)
at drawBorderTop (/Users/maxblock/projects/tmp/t3/node_modules/table/dist/drawBorder.js:41:10)
at create (/Users/maxblock/projects/tmp/t3/node_modules/table/dist/createStream.js:85:43)
at Object.write (/Users/maxblock/projects/tmp/t3/node_modules/table/dist/createStream.js:151:16)
at Timeout.setInterval [as _onTimeout] (/Users/maxblock/projects/tmp/t3/index.js:15:10)
at ontimeout (timers.js:466:11)
at tryOnTimeout (timers.js:304:5)
at Timer.listOnTimeout (timers.js:267:5)
Node: v9.9.0, table: 4.0.3
from table.
Reverted to [email protected] and the problem is gone
from table.
It is open-source package. I don't have resources to inspect this issue at the moment. However, PR would be welcome.
from table.
@gajus This PR seems to work. Could you quickly merge this PR fix and publish a new version?
from table.
๐ This issue has been resolved in version 5.0.0 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐
from table.
Related Issues (20)
- SyntaxError: Invalid regular expression: /(^.{1,0}(\s+|$))|(^.{1,-1}(\\|/|_|\.|,|;|-))/: numbers out of order in {} quantifier HOT 1
- Custom space character HOT 1
- update string-width please HOT 2
- Replace `lodash.clonedeep` and `lodash.truncate` to `lodash` HOT 3
- Merging cells HOT 2
- Drop Node.js 10 HOT 1
- The automated release is failing ๐จ HOT 4
- Module cannot be found error HOT 2
- [bug] package.json main points to wrong location HOT 3
- Warning in DevTools about missing source maps HOT 2
- Allow access to header.content HOT 4
- Headers in Table don't calculate the size correctly if using emoticons like "๐งช"
- Alignment is not working HOT 3
- SpanningCells API example causes TS error HOT 2
- Chalk breaks table structure when used with cell spanning.
- Render tables side by side?
- When using truncate, table borders are coloured the same as the cell content.
- (Question) auto adjust width HOT 2
- utils.flatten is prone to stack overflow
- Performance issue with large tables HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from table.