Comments (8)
My projects have taken place in this case. Config look like
options: {
templateBasePath: /\.\/app\/templates\//,
templateCompilerPath: 'bower_components/ember/ember-template-compiler.js',
handlebarsPath: 'bower_components/handlebars/handlebars.js'
},
I used temporary solution:
Remove templateCompilerPath
and templateCompilerPath
.
Copy bower_components/ember/ember-template-compiler.js
(ember 2.0+) to node_modules/ember-template-compiler/vendor/
, overwrites the same file.
The error will not occur.
from grunt-ember-templates.
hello, thank you for reply. For the moment I am not able to workaround this issue. What should I remove exactly? seems you wrote templateCompilerPath twice
from grunt-ember-templates.
it says
{{#each content as |item|}}
Expecting 'CLOSE_RAW_BLOCK', 'CLOSE', 'CLOSE_UNESCAPED', 'STRING', 'NUMBER', 'BOOLEAN', 'OPEN_SEXPR', 'CLOSE_SEXPR', 'ID', 'EQUALS', 'DATA', 'SEP', got 'INVALID'
from grunt-ember-templates.
it is Ok, I have finally managed to do this. Thanks for the hint
from grunt-ember-templates.
@leafrabbit Thanks for the tip, you're a life saver. I was struggling with this issue for the past few hours and it was driving me nuts! So the ember-template-compiler.js file in the node_modules directory was outdated, duh!
from grunt-ember-templates.
Has there been any update with a new solution that doesn't involve copying over the ember-template-compiler.js from the ember folder for this issue?
from grunt-ember-templates.
It is trouble really for copying file, but i'm not sure to get better solution now.
I think , fork it to modify ? I may not be able to do it about node.js.
However,if you work on Linux,what about the writing a shell script? Like this:
patch.sh
#!/bin/bash
mv ./node_modules/ember-template-compiler/vendor/ember-template-compiler.js ./node_modules/ember-template-compiler/vendor/ember-template-compiler.js.backup
cp ./bower_components/ember/ember-template-compiler.js ./node_modules/ember-template-compiler/vendor/ember-template-compiler.js
exit
unpatch.sh
#!/bin/bash
rm -rf ./node_modules/ember-template-compiler/
npm update
exit
By the way, I'm a Chinese. So sorry, my English is not good. Maybe I spend a lot of times on looking for girls on my school ,it's more than studying. HaHa~~~~。
纵情哪般岁月,不堪回首少年时。
from grunt-ember-templates.
v1.0 of this package removed old dependencies and uses the official ember-template.compiler.js. Please let us know if you experience any problem with the new version.
from grunt-ember-templates.
Related Issues (20)
- Could you please upgrade to ember 2.17.0? HOT 4
- Add an option to print the output in CommonJS style HOT 1
- Errors don't show where they are occurring HOT 2
- Plugin setup HOT 1
- jshint complain about using dot notation HOT 1
- Please update to use handlebars 2.0.0 HOT 6
- ember-template-compiler dependency targets alpha version HOT 7
- Generating templates as "[object Object]". HOT 6
- Templates not redendering anymore in EmberJS app after upgrade from v 0.4.22 HOT 1
- Handlebars 2.0.0
- Ember-template-compiler version conflict HOT 1
- New release with latest changes? HOT 2
- Does not work for ember versions > 1.9.1 HOT 3
- Window not defined HOT 1
- Segmentation Fault HOT 4
- Request for Maintainer HOT 5
- Doesn't work with ember-templates-compiler 2.7.2, but works with 2.3.0 HOT 2
- Failure compiling templates with ember#2.11.0-beta.3 HOT 7
- Add grunt-ember-templates build against latest ember HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-ember-templates.