We have migrated application from angular 4.4 to 8.2.
And also we implemented lazy loading, it seems working fine in local environment with (PROD mode).
But after deployment in different server, it throws chunk files not found.
The command we used :
ng build --prod=true --cross-origin=anonymous --source-map=false
ng build --prod=true --cross-origin=anonymous --source-map=false
Error: Uncaught (in promise): ChunkLoadError: Loading chunk 24 failed.
Related
I want to create a simple webview app that shows the data of a website in an app. Is there a way to cache data in React Native Webview so that if there is no internet it shows cached screens.
I have tried react-native-offline-cache-webview but it does not work anymore. The app does not build and it shows the following error.
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/<user_name>/Projects/<app_name>/node_modules/react-native-offline-cache-webview/android/build.gradle' line: 43
* What went wrong:
A problem occurred evaluating project ':react-native-offline-cache-webview'.
> Could not find method compile() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Is there any other way to cache web pages in webview ?
How the problem arises:
Access to vite in the project, an error is reported when running vite
Error corresponding file:
return crypto.randomBytes(Math.ceil(len / 2)).toString('hex').slice(0, len); //This line reports an error in /node_modules/.vite/unique-string.js
Run framework, version:
vue2.6.12、vue-cli4、vite2.5.5 (The latest version does not work too)
Ask for advice~~
Is it possible to build a chrome app of openui5 application.
I'm trying to do it but getting following errors while loading openui5 resources.
Uncaught Error: found in negative cache: 'sap/ui/core/Core.js' from
undefined/sap/ui/core/Core.js: Error: found in negative cache:
'jquery.sap.events.js' from undefined/jquery.sap.events.js: Error:
failed to load 'sap/ui/thirdparty/jquery-mobile-custom.js' from
resources/sap/ui/thirdparty/jquery-mobile-custom.js: 0 -
InvalidAccessError: Failed to execute 'open' on 'XMLHttpRequest':
Synchronous requests are disabled for this page.
Steps which will reproduce the problem
Setting allowedOrigins: ["*"] in config.js as per defined in documentation and version history.
Add image in editor from any other domain
Uncaught SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. (server_opensave line #73)
Problem occurred in Chrome and Firefox, and in both the latest trunk and 2.7.
My app works fine on the iPhone simulator. However, when I launch the Android 2.2 simulator, the app loads (all the tabs appear) but then it crashes before my TableView appears. Here's the error:
E/TiJSError( 269): (main) [644,1030] ----- Titanium Javascript Runtime Error -----
E/TiJSError( 269): (main) [1,1031] - In ti:/titanium.js:178,19
E/TiJSError( 269): (main) [0,1031] - Message: Uncaught Error: Failed to load resource, Java exception was thrown.
E/TiJSError( 269): (main) [1,1032] - Source: source = assets.readAsset(assetPath);
E/V8Exception( 269): Exception occurred at ti:/titanium.js:178: Uncaught Error: Failed to load resource, Java exception was thrown.
Does this have anything to do with memory? How can I fix this?
Thanks!!
I had a similar problem, and it turned out to be a memory issue.
Try inserting the following line into tiapp.xml:
<property name="ti.android.threadstacksize" type="int">32768</property>
Then clean the Android build folder and run the app again. I hope it works for you!