GithubHelp home page GithubHelp logo

Comments (3)

opcodewriter avatar opcodewriter commented on August 14, 2024

If I use MyControl2 instead of MyControl in default.fap, the error is now about MyControl which can't be loaded:

Uncaught (in promise) Error: Module name "Controls/MyControl" has not been loaded yet for context: _. Use require([])(…)

seems a problem with the way types are parsed and loaded from XAML styles?

from fayde.

opcodewriter avatar opcodewriter commented on August 14, 2024

adding these declarations in Styles.fayde makes it work:

<controls:MyControl x:Key="Dummy1" />
<controls:MyControl2 x:Key="Dummy2" />

from fayde.

BSick7 avatar BSick7 commented on August 14, 2024

This is due to a tricky dependency resolution issue.

Every XAML document goes through 2 parsing passes. In pass 1, we scan for files that haven't been loaded. Once dependencies have been loaded asynchronously, we can proceed with pass 2 loading the markup.

Most likely, pass 1 needs to be updated to scan for Style TargetTypes.

from fayde.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.