Skip to content

build fails when using Two.js (0.8.10) templateΒ #158

@cdaein

Description

@cdaein

I will have to ping you again πŸ™ - @jonobr1

This also might be related to the 0.8.x update as the sketch builds fine with 0.7.x.

Reproducing the problem:

create a sketch with Two.js v.0.8.10 template:

canvas-sketch sketch.js --new --open --template=two

build the sketch:

canvas-sketch sketch.js --dir build --build 

gets an error on CLI:

  β†’ Building...  

SyntaxError: Unexpected token: operator (=)
At line 2333 and column 12 of generated bundle
  ...
  2331:   // src/events.js
  2332:   var Events = class {
  2333:     _events = {};
                   ^
  2334:     _bound = false;
  2335:     constructor() {
  ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions