Currently, I am developing a Vite application using Vue 3.x that involves interactions with images/PDFs through Transloadit. While working on creating my own plugin for Transloadit integration, I encountered some issues.
Initially, I managed to resolve an error caused by Vite removing process
by implementing the following in my vite.config.js
:
define: {
'process.versions': process.versions
}
However, I am now facing a new error:
Uncaught TypeError: Cannot read properties of undefined (reading 'Resolver')
at node_modules/cacheable-lookup/source/index.js (index.js:7)
at __require2 (chunk-IHTDASF6.js?v=e96a9976:17)
at node_modules/got/dist/source/core/index.js (index.js:12)
at __require2 (chunk-IHTDASF6.js?v=e96a9976:17)
at node_modules/got/dist/source/as-promise/types.js (types.js:14)
at __require2 (chunk-IHTDASF6.js?v=e96a9976:17)
at node_modules/got/dist/source/as-promise/index.js (index.js:16)
at __require2 (chunk-IHTDASF6.js?v=e96a9976:17)
at node_modules/got/dist/source/create.js (create.js:15)
at __require2 (chunk-IHTDASF6.js?v=e96a9976:17)
The expanded browser stack trace is as follows:
node_modules/cacheable-lookup/source/index.js @ index.js:7
__require2 @ chunk-IHTDASF6.js?v=e96a9976:17
node_modules/got/dist/source/core/index.js @ index.js:12
__require2 @ chunk-IHTDASF6.js?v=e96a9976:17
node_modules/got/dist/source/as-promise/types.js @ types.js:14
__require2 @ chunk-IHTDASF6.js?v=e96a9976:17
node_modules/got/dist/source/as-promise/index.js @ index.js:16
__require2 @ chunk-IHTDASF6.js?v=e96a9976:17
node_modules/got/dist/source/create.js @ create.js:15
__require2 @ chunk-IHTDASF6.js?v=e96a9976:17
node_modules/got/dist/source/index.js @ index.js:14
__require2 @ chunk-IHTDASF6.js?v=e96a9976:17
node_modules/transloadit/src/Transloadit.js @ Transloadit.js:1
__require2 @ chunk-IHTDASF6.js?v=e96a9976:17
node_modules/transloadit/index.js @ index.js:1
__require2 @ chunk-IHTDASF6.js?v=e96a9976:17
(anonymous) @ dep:transloadit:1
Listed below are my dependencies:
"dependencies": {
"@auth0/auth0-spa-js": "1.18.0",
"axios": "0.21.2",
"transloadit": "3.0.2",
"vue": "3.2.12",
"vue-router": "4"
}