keplergl / kepler.gl

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
http://kepler.gl
MIT License
10.29k stars 1.73k forks source link

[Bug]Attempted import error: 'isTable' is not exported from '@loaders.gl/schema' (imported as 'isTable') #2543

Open aikjun opened 6 months ago

aikjun commented 6 months ago

export 'isTable' (imported as 'isTable') was not found in '@loaders.gl/schema' (possible exports: AsyncQueue, Binary, Bool, ColumnarTableBatchAggregator, DataType, Date, DateDay, DateMillisecond, Field, FixedSizeList, Float, Float16 , Float32, Float64, Int, Int16, Int32, Int64, Int8, Interval, IntervalDayTime, IntervalYearMonth, Null, RowTableBatchAggregator, Schema, Struct, TableBatchBuilder, Time, TimeMillisecond, TimeSecond, Timestamp, TimestampMicrosecond, TimestampMillisecond, TimestampNanosecond, TimestampSecond, Uint16, Uint32, Uint64, Uint8, Utf8, convertToArrayRow, convertToObjectRow, deduceMeshField, deduceMeshSchema, deduceTypeFromColumn, deduceTypeFromValue, getArrowTypeFromTypedArray, getMeshBoundingBox, getMeshSize, getTypeInfo, makeMeshAttributeMetadata)

Please help

webocean8 commented 4 months ago

I am also having this issue as well. Same error as above. May I ask how the error has been resolved now?

ibgreen commented 4 months ago

What version are you on?

https://github.com/visgl/loaders.gl/blob/master/modules/schema/src/index.ts#L47

webocean8 commented 4 months ago

Thank you for your advice. In the package.json file for the Kepler 3.0.0 project that I downloaded, the version for @loaders.gl is ^4.1.0-alpha.4. Could you tell me which version would allow Kepler 3.0.0 to run smoothly?

package.json

"dependencies": { ... "@loaders.gl/polyfills": "^4.1.0-alpha.4", ... },

"devDependencies": { ... "@loaders.gl/polyfills": "^4.1.0-alpha.4", ... },

"resolutions": { "@loaders.gl/core": "^4.1.0-alpha.4", "@loaders.gl/csv": "^4.1.0-alpha.4", "@loaders.gl/gltf": "^4.1.0-alpha.4", "@loaders.gl/json": "^4.1.0-alpha.4", "@loaders.gl/loader-utils": "^4.1.0-alpha.4", "@loaders.gl/polyfills": "^4.1.0-alpha.4", ... },

webocean8 commented 4 months ago

I came across a functioning version, kepler.gl-3.0.0-alpha.1.tar.gz, within a node14.21.3 system environment. After executing "yarn" at the root level of the project, the system environment updated to node18.18.2. By running "yarn start" in the project's root, I successfully launched the project.