Closed Macarthurval closed 3 years ago
You don't need to add UI/frame and activity to your app components. Also, I believe you have to rebuild the app (try a ns clean) so the class is picked up by the sbg
@edusperoni you're the man, a ns clean
did the trick for me, big thanks!
Environment Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):CLI: 8.0.2
Cross-platform modules: 8.0.5
Android Runtime: 8.0.0
iOS Runtime: 8.0.0
Plugin(s):
Node.js: 12.20.1
[ x] Please, attach your package.json and webpack.config.js as these configurations are usually critical for investigating issues with webpack
package.json
webpack.config.ts
Describe the bug Hello, I'm getting a
com.tns.system.classes.loading.LookedUpClassNotFound
error at application startup, after Webpack compilation is completed. I'm trying to use a custom activity on my app, and I suspect that is my webpack.config.js what is wrong, because I couldn't find any example for the new Nativescript 8 and Webpack 5 about how to customize theappComponents
option.To Reproduce
activity.android.ts
AndroidManifest.xml
webpack.config.js
Expected behavior App startup without error
Sample project
Additional context