When first running app, error appear for missing modules: "aws-sdk", "nock", "mock-aws-s3".
After installing them using npm, app runs normally but after opening it through the preview link, in the editor console many errors appear along the lines of Vite Error: optimized info should be defined. Sometimes other errors appear in the brower's console Uncaught ReferenceError: global is not defined at ../../node_modules/buffer/index.js and Websocket closed before establishing.
When first running app, error appear for missing modules:
"aws-sdk", "nock", "mock-aws-s3"
.After installing them using npm, app runs normally but after opening it through the preview link, in the editor console many errors appear along the lines of
Vite Error: optimized info should be defined
. Sometimes other errors appear in the brower's consoleUncaught ReferenceError: global is not defined at ../../node_modules/buffer/index.js
andWebsocket closed before establishing
.These are my
package.json
files: