Code Monkey home page Code Monkey logo

Comments (11)

sankargorthi avatar sankargorthi commented on August 15, 2024

I ran into this too - I was running a --standalone build. Is that how you're using component too? @aprilb

Also, are you using a plugin for handlebars or pre-compiling them yourself?

from component.

timaschew avatar timaschew commented on August 15, 2024
  • what is the error?
  • how your build output looks?
  • how you build your app?
  • do you use the hbs plugin and if yes, how?

from component.

aprilb avatar aprilb commented on August 15, 2024

Error:

Uncaught Error: failed to require "./template.hbs"

from component.

aprilb avatar aprilb commented on August 15, 2024

@sankargorthi using component-build-handlebars plugin

from component.

sankargorthi avatar sankargorthi commented on August 15, 2024

@aprilb are you using a custom builder? How's the plugin parsing your templates? Also, which version of the plugin and component are you using?

from component.

aprilb avatar aprilb commented on August 15, 2024

Here is the build file:
https://gist.github.com/aprilb/aedad66feec4236f1982

Versions:
"component": "~1.0.0",
"component-build-handlebars": "0.0.1",

from component.

aprilb avatar aprilb commented on August 15, 2024

@sankargorthi here is the builder:
https://github.com/dominicbarnes/component-build-handlebars

from component.

sankargorthi avatar sankargorthi commented on August 15, 2024

Everything looks good to me so far. And you aren't using the standalone builder either - so no idea why your template's not loading.

from component.

timaschew avatar timaschew commented on August 15, 2024

why you use also the string plugin?
https://gist.github.com/aprilb/aedad66feec4236f1982#file-gistfile1-txt-L58

the readme of the handlebars plugin don't mention the string plugin, so it looks like you using it wrong.

from component.

aprilb avatar aprilb commented on August 15, 2024

Removing the string plugin doesn't seem to have an affect --still getting the same error. But the person who wrote the handlebars plugin I mentioned --also wrote this part of the script. It doesn't fail if these scripts are local --they are only failing now that they are being required as a remote dependency.

from component.

timaschew avatar timaschew commented on August 15, 2024

If you want help, please provide a repository where I can reproduce the problem.

from component.

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.