Giter VIP home page Giter VIP logo

Comments (8)

leafrabbit avatar leafrabbit commented on August 28, 2024

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.

novtor avatar novtor commented on August 28, 2024

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.

novtor avatar novtor commented on August 28, 2024

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.

novtor avatar novtor commented on August 28, 2024

it is Ok, I have finally managed to do this. Thanks for the hint

from grunt-ember-templates.

arminzia avatar arminzia commented on August 28, 2024

@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.

ryansonshine avatar ryansonshine commented on August 28, 2024

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.

leafrabbit avatar leafrabbit commented on August 28, 2024

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.

zoltan-nz avatar zoltan-nz commented on August 28, 2024

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)

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.