Skip to content

[nativescript-filterable-listpicker] [angular] 'GridLayout' not found for element 'GridLayout' #39

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

Closed
valera1401 opened this issue Apr 19, 2021 · 1 comment

Comments

@valera1401
Copy link

NS 8
"@nstudio/nativescript-filterable-listpicker": "^3.0.0"

New ng app

Simple page:

<GridLayout>
<FilterableListpicker blur="dark" hintText="Type to filter..."></FilterableListpicker>
</GridLayout>

System.err: Calling js method onCreateView failed

System.err: Error: Parsing XML at 2:11

System.err: > Module 'GridLayout' not found for element 'GridLayout'.

System.err: > com.tns.NativeScriptException: Failed to find module: "@nativescript/core/ui", relative to: app/tns_modules/

Maybe the same issue:
NativeScript/nativescript-dev-webpack#1121

Was working fine in NS 6

@valera1401
Copy link
Author

  1. Add bundle-config.js to the app folder.
    if (global.TNS_WEBPACK) { require("@nativescript/core/bundle-entry-points"); const context = require.context("~/", true, /(page|fragment)\.(xml|css|js|ts|scss|less|sass)$/); global.registerWebpackModules(context); }

  2. Add import "./bundle-config"; to the app.module.ts

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