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

Custom Element not working with symlinked aurelia-plugin library #165

Open
alexisszabo opened this issue May 6, 2020 · 1 comment
Open

Comments

@alexisszabo
Copy link

alexisszabo commented May 6, 2020

I'm submitting a bug report

  • Library Version:
    4.0.0

Please tell us about your environment:

  • Operating System:
    Windows 10

  • Node Version:
    10.17.0

  • NPM Version:
    6.11.3

  • Webpack Version
    webpack 4.43.0

  • Browser:
    all

  • Language:
    TypeScript 3.8.3

Current behavior:

I have a monorepo setup as follows:
|- plugin-test (Aurelia Plugin project, built with au new --plugin)
|- app-test (Aurelia app project, build with au new)

I used npm (with a symlinked file version) to install the plugin-test plugin into the app-test app. The sample attributes, binding-behaviors, and value-converters all work fine in the app-test app. However, the <hello-world></hello-world> element does not render.

Expected/desired behavior:
I expected the <hello-world></hello-world> element to work. I also tried using the @inlineView, @useView and @useView(PLATFORM.moduleName("...")) decorators (and then rebuilding the plugin library with au build-plugin), but that did not seem to help.

I created a reproduction here: https://github.com/alexisszabo/aurelia-plugin-element-issue

This issue seems related to #164, but I have had no success with the suggestions there. It looks like I should ideally be using @fromView in my plugin library for custom elements, but that did not seem to work for me.

@alexisszabo
Copy link
Author

alexisszabo commented May 12, 2020

Is the above a supported configuration with webpack-plugin? #164 (comment) seems to suggest to use the cli-bundler for the view resources to resolve properly.

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