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

ERROR in ./src/CONFIG.ts 3:0-41 [web-server] Module not found: Error: Can't resolve 'react-native-config' in '/Volumes/Personal/code-work/rn-projects/zaions/expensify-app-fork/src' #783

Open
aoneahsan opened this issue Nov 27, 2023 · 0 comments

Comments

@aoneahsan
Copy link

web

scripts/set-pusher-suffix.sh && concurrently npm:web-proxy npm:web-server

[web-proxy]
[web-proxy] > [email protected] web-proxy
[web-proxy] > node web/proxy.js
[web-proxy]
[web-server]
[web-server] > [email protected] web-server
[web-server] > webpack-dev-server --open --config config/webpack/webpack.dev.js
[web-server]
[web-proxy] Creating proxy with host: www.expensify.com for production API and staging.expensify.com for staging API
[web-proxy] Proxy server listening at http://localhost:9000
[web-server] [webpack-dev-server] [HPM] Proxy created: /api -> http://[::1]:9000
[web-server] [webpack-dev-server] [HPM] Proxy created: /staging -> http://[::1]:9000
[web-server] [webpack-dev-server] [HPM] Proxy created: /chat-attachments -> http://[::1]:9000
[web-server] [webpack-dev-server] [HPM] Proxy created: /receipts -> http://[::1]:9000
[web-server] (node:99070) [DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK] DeprecationWarning: Compilation.hooks.normalModuleLoader was moved to NormalModule.getCompilationHooks(compilation).loader
[web-server] (Use node --trace-deprecation ... to show where the warning was created)
[web-server] [webpack-dev-server] Project is running at:
[web-server] [webpack-dev-server] Server: https://dev.new.expensify.com:8082/
[web-server] [webpack-dev-server] Loopback: https://127.0.0.1:8082/
[web-server] [webpack-dev-server] Content not from webpack is served from '/Volumes/Personal/code-work/rn-projects/zaions/expensify-app-fork/dist' directory
[web-server] [webpack-dev-server] 404s will fallback to '/index.html'
[web-server] [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Managed item /Volumes/Personal isn't a directory or doesn't contain a package.json (see snapshot.managedPaths option)
[web-server] [webpack-dev-middleware] wait until bundle finished: /
[web-server] babel.config.js
[web-server] - api.version: 7.22.11
[web-server] - api.env: development
[web-server] - process.env.NODE_ENV: undefined
[web-server] - process.env.BABEL_ENV: undefined
[web-server] - running in: babel-loader
[web-server] [BABEL] Note: The code generator has deoptimised the styling of /Volumes/Personal/code-work/rn-projects/zaions/expensify-app-fork/assets/images/home-background--desktop.svg as it exceeds the max of 500KB.
[web-server] [BABEL] Note: The code generator has deoptimised the styling of undefined as it exceeds the max of 500KB.
[web-server] (node:99070) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
[web-server] BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
[web-server] Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
[web-server] Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_.
[web-server]
[web-server] ┌── time-analytics-webpack-plugin
[web-server] │ Webpack compile takes 71172.9805 ms
[web-server] ├── Plugins
[web-server] │ Plugin HtmlWebpackPlugin takes 38.2711 ms
[web-server] │ Plugin IgnorePlugin takes 16.4277 ms
[web-server] │ Plugin CopyPlugin takes 174.2969 ms
[web-server] │ Plugin ProvidePlugin takes 0.1441 ms
[web-server] │ Plugin EnvironmentPlugin takes 9.1902 ms
[web-server] │ Plugin DefinePlugin takes 0.2863 ms
[web-server] │ Plugin CleanWebpackPlugin takes 0.1188 ms
[web-server] │ Plugin WebpackFontPreloadPlugin takes 100.7707 ms
[web-server] │ All plugins take 339.5057 ms
[web-server] ├── Loaders
[web-server] │ Loader babel-loader takes 33413.0358 ms
[web-server] │ Loader @svgr/webpack takes 515212.1330 ms
[web-server] │ Loader style-loader takes 3.1447 ms
[web-server] │ All loaders take 548628.3135 ms
[web-server]
[web-server] assets by path cmaps/ 1.11 MiB
[web-server] asset cmaps/UniCNS-UTF8-H.bcmap 52.4 KiB [emitted] [from: node_modules/pdfjs-dist/cmaps/UniCNS-UTF8-H.bcmap] [copied]
[web-server] + 168 assets
[web-server] assets by info 105 MiB [immutable]
[web-server] assets by chunk 1.27 MiB (auxiliary name: main) 23 assets
[web-server] assets by path .js 104 MiB 15 assets
[web-server] assets by path fonts/ 3.25 MiB 17 assets
[web-server] assets by path css/
.css 13.6 KiB
[web-server] asset css/AnnotationLayer.css 9.05 KiB [emitted] [from: node_modules/react-pdf/dist/esm/Page/AnnotationLayer.css] [copied]
[web-server] asset css/fonts.css 2.02 KiB [emitted] [from: assets/css/fonts.css] [copied]
[web-server] + 2 assets
[web-server] assets by path .well-known/ 3.48 KiB
[web-server] asset .well-known/apple-app-site-association 3.18 KiB [emitted] [from: .well-known/apple-app-site-association] [copied]
[web-server] asset .well-known/assetlinks.json 303 bytes [emitted] [from: .well-known/assetlinks.json] [copied]
[web-server] + 8 assets
[web-server] Entrypoint main 96.9 MiB (3.14 MiB) = runtime-557620789dddf1235307.bundle.js 50.2 KiB vendors-89c41c536b59d45bb835.bundle.js 69.5 MiB main-e9a675af0b86145e57fb.bundle.js 27.3 MiB 24 auxiliary assets
[web-server] orphan modules 1.38 MiB [orphan] 768 modules
[web-server] runtime modules 33.4 KiB 20 modules
[web-server] modules by path ./node_modules/ 27.8 MiB 3272 modules
[web-server] modules by path ./src/ 5.05 MiB 1086 modules
[web-server] modules by path ./assets/ 3.46 MiB (javascript) 1.27 MiB (asset)
[web-server] javascript modules 3.45 MiB 319 modules
[web-server] asset modules 19.6 KiB (javascript) 1.27 MiB (asset) 25 modules
[web-server] modules by mime type image/svg+xml 24.7 KiB
[web-server] data:image/svg+xml,%3Csvg width=%27.. 699 bytes [built] [code generated]
[web-server] data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27.. 271 bytes [built] [code generated]
[web-server] + 29 modules
[web-server] modules by path ./
.js 1.18 KiB
[web-server] ./index.js 413 bytes [built] [code generated]
[web-server] ./wdyr.js 800 bytes [built] [code generated]
[web-server] + 9 modules
[web-server]
[web-server] LOG from webpack.FileSystemInfo
[web-server] Managed item /Volumes/Personal isn't a directory or doesn't contain a package.json (see snapshot.managedPaths option)
[web-server] + 12 hidden lines
[web-server]
[web-server] ERROR in ./src/CONFIG.ts 3:0-41
[web-server] Module not found: Error: Can't resolve 'react-native-config' in '/Volumes/Personal/code-work/rn-projects/zaions/expensify-app-fork/src'
[web-server] @ ./index.js 7:0-34 10:30-45
[web-server]
[web-server] ERROR in ./src/CONST.ts 4:0-41
[web-server] Module not found: Error: Can't resolve 'react-native-config' in '/Volumes/Personal/code-work/rn-projects/zaions/expensify-app-fork/src'
[web-server] @ ./src/CONFIG.ts 4:0-28 16:45-66 30:20-41 70:33-58
[web-server] @ ./index.js 7:0-34 10:30-45
[web-server]
[web-server] ERROR in ./src/components/SignInButtons/AppleSignIn/index.website.js 8:0-41
[web-server] Module not found: Error: Can't resolve 'react-native-config' in '/Volumes/Personal/code-work/rn-projects/zaions/expensify-app-fork/src/components/SignInButtons/AppleSignIn'
[web-server] @ ./src/pages/signin/ThirdPartySignInPage.js 10:0-64 58:92-103
[web-server] @ ./src/pages/signin/AppleSignInDesktopPage/index.website.js 2:0-70 5:42-62
[web-server] @ ./src/libs/Navigation/AppNavigator/PublicScreens.js 4:0-74 33:15-37
[web-server] @ ./src/libs/Navigation/AppNavigator/index.js 14:22-59
[web-server] @ ./src/libs/Navigation/NavigationRoot.js 14:0-42 166:38-50
[web-server] @ ./src/Expensify.js 31:0-62 221:38-52
[web-server] @ ./src/App.js 21:0-36 52:38-47
[web-server] @ ./index.js 6:0-28 11:9-12
[web-server]
[web-server] ERROR in ./src/libs/Environment/Environment.ts 3:0-41
[web-server] Module not found: Error: Can't resolve 'react-native-config' in '/Volumes/Personal/code-work/rn-projects/zaions/expensify-app-fork/src/libs/Environment'
[web-server] @ ./src/App.js 25:0-62 31:14-39
[web-server] @ ./index.js 6:0-28 11:9-12
[web-server]
[web-server] ERROR in ./src/libs/Environment/getEnvironment/index.ts 1:0-41
[web-server] Module not found: Error: Can't resolve 'react-native-config' in '/Volumes/Personal/code-work/rn-projects/zaions/expensify-app-fork/src/libs/Environment/getEnvironment'
[web-server] @ ./src/libs/Environment/Environment.ts 6:0-46 31:4-18 41:9-23 45:0-106
[web-server] @ ./src/App.js 25:0-62 31:14-39
[web-server] @ ./index.js 6:0-28 11:9-12
[web-server]
[web-server] ERROR in ./src/libs/actions/DemoActions.js 2:0-41
[web-server] Module not found: Error: Can't resolve 'react-native-config' in '/Volumes/Personal/code-work/rn-projects/zaions/expensify-app-fork/src/libs/actions'
[web-server] @ ./src/Expensify.js 20:0-58 179:6-30 185:6-30
[web-server] @ ./src/App.js 21:0-36 52:38-47
[web-server] @ ./index.js 6:0-28 11:9-12
[web-server]
[web-server] ERROR in ./wdyr.js 4:0-41
[web-server] Module not found: Error: Can't resolve 'react-native-config' in '/Volumes/Personal/code-work/rn-projects/zaions/expensify-app-fork'
[web-server] @ ./src/App.js 8:0-17
[web-server] @ ./index.js 6:0-28 11:9-12
[web-server]
[web-server] 7 errors have detailed information that is not shown.
[web-server] Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
[web-server]
[web-server] webpack 5.88.2 compiled with 7 errors in 71178 ms

Screenshot 2023-11-27 at 4 14 11 PM
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