cibernox / ember-ast-helpers Goto Github PK
View Code? Open in Web Editor NEWUtility belt to level-up your Ember AST transforms
License: MIT License
Utility belt to level-up your Ember AST transforms
License: MIT License
This was mentioned here: #23
But Glimmer is now on 0.88. ๐
It seems also the glimmer dependencies need to move to dependencies
.
I get this error:
Cannot find module '@glimmer/syntax'
Require stack:
- <deps>/[email protected]/node_modules/ember-ast-helpers/build-time-component.js
Latest published seems to be 0.4, but it throws error:
Cannot find module '@glimmer/syntax'
Downgrading to 0.3.5 seemed to get me going.
Should we make 0.4 a pre-release? I couldn't find it in Github.
Let me know if I can help!
I tried copying this line from Ember Font Awesome
const { default: BuildTimeComponent, interpolateProperties } = require('ember-ast-helpers/build-time-component');
but I got an error
Cannot find module 'ember-ast-helpers/build-time-component'
and my node-fu is extremely weak.
I started seeing issue emberjs/ember.js#16269 quite often in my production logs yesterday when I upgraded from [email protected] to [email protected].
A fix (emberjs/ember.js#16286) was released in [email protected] but ember-font-awesome uses [email protected] which locks @ember/compiler to ^0.27.0.
Is there a reason why this is locked to glimmer 0.27.x ?
I want to do something like:
this.layout`
{{#if title}}
<title>{{title}}</title>
{{/if}}
<path d={{iconPath}}></path>`
For our layout, but this doesn't ever display the <title>
tag.
Removing the if
block I'm able to do:
this.layout`
<title>{{title}}</title>
<path d={{iconPath}}></path>`
but then I'm left with an empty <title></title>
when the title isn't set.
Is this possible to do with these helpers or do I need to find a different path?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.