I'm trying to use ali-oss on my svelte project, and after installing the package, when I run yarn start I get: #3695
Replies: 1 comment
-
this is my package.json |
Beta Was this translation helpful? Give feedback.
-
this is my package.json |
Beta Was this translation helpful? Give feedback.
-
! updating dependencies...
⠧ snowpack installing... @babylonjs/core, @babylonjs/core/types, @babylonjs/gui, @babylonjs/loaders, @babylonjs/loaders/glTF/2.0, @babylonjs/mater⠼ snowpack installing... @babylonjs/core, @babylonjs/core/types, @babylonjs/gui, @babylonjs/loaders, @babylonjs/loaders/glTF/2.0, @babylonjs/materials, ajv, ali-oss, better-scroll, d3-interpolate, es6-tween, hammerjs, lodash, querystring, svelte, svelte/easing, svelte/internal, svelte/motion, svelte/transition
✖ 'http' is imported by 'node_modules/ali-oss/shims/xhr.js', but could not be resolved.
'http' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to node_modules/ali-oss/shims/xhr.js
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'path' is imported by 'node_modules/ali-oss/lib/managed-upload.js', but could not be resolved.
'path' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to node_modules/ali-oss/lib/managed-upload.js
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'stream' is imported by 'node_modules/ali-oss/lib/managed-upload.js', but could not be resolved.
'stream' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to node_modules/ali-oss/lib/managed-upload.js
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'path' is imported by 'node_modules/ali-oss/lib/object.js', but could not be resolved.
'path' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to node_modules/ali-oss/lib/object.js
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'stream' is imported by 'node_modules/ali-oss/lib/object.js', but could not be resolved.
'stream' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to node_modules/ali-oss/lib/object.js
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'stream' is imported by 'node_modules/ali-oss/shims/is-type-of.js', but could not be resolved.
'stream' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to node_modules/ali-oss/shims/is-type-of.js
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'path' is imported by 'node_modules/ali-oss/lib/common/utils/createRequest.js', but could not be resolved.
'path' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to node_modules/ali-oss/lib/common/utils/createRequest.js
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'https' is imported by 'node_modules/ali-oss/shims/xhr.js', but could not be resolved.
'https' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to node_modules/ali-oss/shims/xhr.js
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'stream' is imported by 'stream?commonjs-external', but could not be resolved.
'stream' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to stream?commonjs-external
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'http' is imported by 'http?commonjs-external', but could not be resolved.
'http' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to http?commonjs-external
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'https' is imported by 'https?commonjs-external', but could not be resolved.
'https' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to https?commonjs-external
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'path' is imported by 'path?commonjs-external', but could not be resolved.
'path' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to path?commonjs-external
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'os' is imported by 'node_modules/address/lib/address.js', but could not be resolved.
'os' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to node_modules/address/lib/address.js
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'fs' is imported by 'node_modules/address/lib/address.js', but could not be resolved.
'fs' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to node_modules/address/lib/address.js
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'child_process' is imported by 'node_modules/address/lib/address.js', but could not be resolved.
'child_process' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to node_modules/address/lib/address.js
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'timers' is imported by 'node_modules/xml2js/lib/parser.js', but could not be resolved.
'timers' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to node_modules/xml2js/lib/parser.js
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'os' is imported by 'os?commonjs-external', but could not be resolved.
'os' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to os?commonjs-external
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'fs' is imported by 'fs?commonjs-external', but could not be resolved.
'fs' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to fs?commonjs-external
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'child_process' is imported by 'child_process?commonjs-external', but could not be resolved.
'child_process' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to child_process?commonjs-external
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'timers' is imported by 'timers?commonjs-external', but could not be resolved.
'timers' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to timers?commonjs-external
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ 'stream' is imported by 'node_modules/sax/lib/sax.js', but could not be resolved.
'stream' is a Node.js builtin module that won't exist in the browser.
Search pika.dev for a web-friendly alternative to node_modules/sax/lib/sax.js
Or, add "rollup-plugin-node-polyfills" to installOptions.rollup.plugins in your Snowpack config file.
✖ snowpack failed to load node_modules/querystring/index.js?commonjs-proxy
'__moduleExports' is not exported by node_modules/querystring/index.js, imported by /Users/shenhaoguang/Desktop/demo/bjs-gltf-viewer/node_modules/querystring/index.js?commonjs-proxy
npm ERR! code ELIFECYCLE
Beta Was this translation helpful? Give feedback.
All reactions