Previously, I solved one problem by change the version of fs
library from “0.0.1-security
” to 0.0.2
.
However, I encountered new problems. I’m now able to see other pages that don’t use do require
(“cloudscraper”), however the page that calls require(“cloudscraper”) function shows blank with the following warning in glitch log:
WARNING Compiled with 1 warnings02:04:09
warning in /rbd/pnpm-volume/eec62301-d63b-4d95-a543-0348444d1ed5/node_modules/.registry.npmjs.org/cloudscraper/4.1.2/node_modules/cloudscraper/lib/brotli.js
17:11-18 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
Any help would be appreciated
Error on browser’s console on this page that uses cloudscraper:
client.js:522 [nuxt] Error while initializing app Error: Cannot find module "."
at webpackMissingModule (brotli.js:17)
at Object.<anonymous> (brotli.js:17)
at Object.../rbd/pnpm-volume/eec62301-d63b-4d95-a543-0348444d1ed5/node_modules/.registry.npmjs.org/cloudscraper/4.1.2/node_modules/cloudscraper/lib/brotli.js (brotli.js:36)
at __webpack_require__ (bootstrap 92d12d5172aae9f61e7a:712)
at fn (bootstrap 92d12d5172aae9f61e7a:117)
at Object.../rbd/pnpm-volume/eec62301-d63b-4d95-a543-0348444d1ed5/node_modules/.registry.npmjs.org/cloudscraper/4.1.2/node_modules/cloudscraper/lib/headers.js (headers.js:4)
at __webpack_require__ (bootstrap 92d12d5172aae9f61e7a:712)
at fn (bootstrap 92d12d5172aae9f61e7a:117)
at Object.<anonymous> (index.js:6)
at Object.../rbd/pnpm-volume/eec62301-d63b-4d95-a543-0348444d1ed5/node_modules/.registry.npmjs.org/cloudscraper/4.1.2/node_modules/cloudscraper/index.js (index.js:504)
at __webpack_require__ (bootstrap 92d12d5172aae9f61e7a:712)
at fn (bootstrap 92d12d5172aae9f61e7a:117)
at Object.../rbd/pnpm-volume/eec62301-d63b-4d95-a543-0348444d1ed5/node_modules/.registry.npmjs.org/babel-loader/7.1.5/babel-core@6.26.3+webpack@3.12.0/node_modules/babel-loader/lib/index.js?{"babelrc":false,"cacheDirectory":true,"plugins":[["transform-imports",{"vuetify":{"transform":"vuetify/es5/components/${member}","preventFullImport":true}}]],"presets":[["/rbd/pnpm-volume/eec62301-d63b-4d95-a543-0348444d1ed5/node_modules/.registry.npmjs.org/babel-preset-vue-app/2.0.0/node_modules/babel-preset-vue-app/dist/index.common.js",{"targets":{"ie":9,"uglify":true}}]]}!../rbd/pnpm-volume/eec62301-d63b-4d95-a543-0348444d1ed5/node_modules/.registry.npmjs.org/vue-loader/13.7.3/d029cddaac9a10ba78648298334c6478/node_modules/vue-loader/lib/selector.js?type=script&index=0!./pages/trial/_username.vue (_username.vue?e84e:9)
at __webpack_require__ (bootstrap 92d12d5172aae9f61e7a:712)
at fn (bootstrap 92d12d5172aae9f61e7a:117)
at Object../pages/trial/_username.vue (_username.vue:1)
at __webpack_require__ (bootstrap 92d12d5172aae9f61e7a:712)
at fn (bootstrap 92d12d5172aae9f61e7a:117)
(anonymous) @ client.js:522
Promise.catch (async)
./.nuxt/client.js @ client.js:518
__webpack_require__ @ bootstrap 92d12d5172aae9f61e7a:712
fn @ bootstrap 92d12d5172aae9f61e7a:117
0 @ app.styl?0495:21
__webpack_require__ @ bootstrap 92d12d5172aae9f61e7a:712
webpackJsonpCallback @ bootstrap 92d12d5172aae9f61e7a:25
(anonymous) @ app.js:1
client.js?name=client&reload=true&timeout=30000&path=/__webpack_hmr:195 [HMR] bundle 'client' has 1 warnings