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

vue gltfpipeline error #625

Open
gushenjie opened this issue Dec 3, 2022 · 0 comments
Open

vue gltfpipeline error #625

gushenjie opened this issue Dec 3, 2022 · 0 comments

Comments

@gushenjie
Copy link

image

image

"C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" run start --scripts-prepend-node-path=auto

gltftest@1.0.0 start
npm run dev

gltftest@1.0.0 dev
webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

(node:3824) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use node --trace-deprecation ... to show where the warning was created)
13% building modules 33/38 modules 5 active ...-workspace\sufei\gltftest\src\App.vue{ parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }.
94% asset optimization

ERROR Failed to compile with 3 errors 上午10:37:42

error in ./node_modules/gltf-pipeline/node_modules/fs-extra/lib/index.js

Module parse failed: Unexpected token (5:2)
You may need an appropriate loader to handle this file type.
| module.exports = {
| // Export promiseified graceful-fs:
| ...require('./fs'),
| // Export extra methods:
| ...require('./copy-sync'),

@ ./node_modules/gltf-pipeline/lib/readResources.js 3:16-35
@ ./node_modules/gltf-pipeline/lib/processGltf.js
@ ./node_modules/gltf-pipeline/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

error in ./node_modules/@cesium/engine/Source/Scene/Model/MetadataPipelineStage.js

Module parse failed: Unexpected token (86:29)
You may need an appropriate loader to handle this file type.
| const { shaderBuilder, model } = renderResources;
| const { structuralMetadata = {}, content } = model;
| const statistics = content?.tileset.metadataExtension?.statistics;
|
| const propertyAttributesInfo = getPropertyAttributesInfo(

@ ./node_modules/@cesium/engine/Source/Scene/Model/ModelRuntimePrimitive.js 17:0-63
@ ./node_modules/@cesium/engine/Source/Scene/Model/ModelSceneGraph.js
@ ./node_modules/@cesium/engine/Source/Scene/Model/Model.js
@ ./node_modules/@cesium/engine/Source/DataSources/ModelVisualizer.js
@ ./node_modules/@cesium/engine/index.js
@ ./node_modules/cesium/Source/Cesium.js
@ ./node_modules/gltf-pipeline/lib/getStatistics.js
@ ./node_modules/gltf-pipeline/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

error in ./node_modules/@zip.js/zip.js/lib/core/zip-reader.js

Module parse failed: Unexpected token (90:6)
You may need an appropriate loader to handle this file type.
| }
|
| async* getEntriesGenerator(options = {}) {
| const zipReader = this;
| const reader = zipReader.reader;

@ ./node_modules/@zip.js/zip.js/lib/zip-no-worker.js 39:0-37
@ ./node_modules/@cesium/engine/Source/DataSources/KmlDataSource.js
@ ./node_modules/@cesium/engine/index.js
@ ./node_modules/cesium/Source/Cesium.js
@ ./node_modules/gltf-pipeline/lib/getStatistics.js
@ ./node_modules/gltf-pipeline/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

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