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

Error when building example project #8

Open
mwbeene opened this issue Aug 31, 2020 · 2 comments
Open

Error when building example project #8

mwbeene opened this issue Aug 31, 2020 · 2 comments

Comments

@mwbeene
Copy link

mwbeene commented Aug 31, 2020

Hi there, I'm getting the following issue when I try to install:

ERROR in ./src/scene.html 1:14
Module parse failed: Bad escape sequence in untagged template literal (1:14)
File was processed with these loaders:
 * ./node_modules/aframe-super-hot-html-loader/index.js
 * ./node_modules/super-nunjucks-loader/index.js
 * ./node_modules/html-require-loader/index.js
You may need an additional loader to handle the result of these loaders.
> const html = `<a-scene environment="preset: forest; seed: 123; shadowSize: 5">
|   <!-- <require path="C:\directory-to\aframe-super-hot-loader\example\src\templates\assets.html"> -->
| <a-assets>
 @ ./src/index.js 10:0-23

Here are the steps I followed:

$ git clone https://github.com/supermedium/aframe-super-hot-loader
$ cd aframe-super-hot-loader/example
$ npm install
$ npm run start

I'm pretty new to webpack so I'm not sure if I'm missing a step.

Thanks!

@JonLevin25
Copy link

Having the same issue, any resolution?

@PeteHaughie
Copy link

Create a folder called src in the root of your project, put a file called index.js inside it.

The contents of this file should be:

const Nunjucks = require('nunjucks');
const path = require('path');

const nunjucks = Nunjucks.configure(__dirname, {noCache: true});

module.exports = function (source) {
  return nunjucks.render('hot.template.js', {html: source});
};

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

3 participants