GithubHelp home page GithubHelp logo

Comments (8)

CvX avatar CvX commented on July 20, 2024

Updating in-range dependencies (422c0bc) does fix the production build for me, but now I can't get the development/test build to complete (with or without those updates 😬).

from ember-cli-fastboot-testing.

ryanto avatar ryanto commented on July 20, 2024

Looks related to this one maybe: ember-learn/ember-cli-addon-docs#259

I'll PR, hopefully that'll fix your dev env

from ember-cli-fastboot-testing.

ryanto avatar ryanto commented on July 20, 2024

Updating in-range dependencies (422c0bc) does fix the production build for me, but now I can't get the development/test build to complete (with or without those updates 😬).

The joys of nodejs development :D

from ember-cli-fastboot-testing.

CvX avatar CvX commented on July 20, 2024

Hm… #59 did fix the production build, but I still have the development/test issue.

It works on node 12, but when I switched to node 6 (to match the travis environment), it fails because the JS output in dev/test contains async/await stuff, which isn't supported by that node version. The production build is ok because that stuff is probably transformed to use promises instead.

I don't get it why it doesn't break on CI… 🤔 Could you confirm whether or not it works for you (locally, on node 6)?

Btw. here are the error details:

  - stack: /Users/cvx/dev/ember-cli-fastboot-testing/tmp/broccoli_merge_trees-output_path-8szewS9x.tmp/assets/vendor.js:167455
    async methodForRequest({ method = HTTP_METHOD_GET }) {
          ^^^^^^^^^^^^^^^^

SyntaxError: Unexpected identifier
    at VMSandbox.eval (/Users/cvx/dev/ember-cli-fastboot-testing/node_modules/fastboot/src/vm-sandbox.js:13:22)
    at /Users/cvx/dev/ember-cli-fastboot-testing/node_modules/fastboot/src/ember-app.js:156:15
    at Array.forEach (native)
    at EmberApp.loadAppFiles (/Users/cvx/dev/ember-cli-fastboot-testing/node_modules/fastboot/src/ember-app.js:153:21)
    at EmberApp.retrieveSandboxedApp (/Users/cvx/dev/ember-cli-fastboot-testing/node_modules/fastboot/src/ember-app.js:201:10)
    at new EmberApp (/Users/cvx/dev/ember-cli-fastboot-testing/node_modules/fastboot/src/ember-app.js:59:21)
    at FastBoot._buildEmberApp (/Users/cvx/dev/ember-cli-fastboot-testing/node_modules/fastboot/src/index.js:114:17)
    at new FastBoot (/Users/cvx/dev/ember-cli-fastboot-testing/node_modules/fastboot/src/index.js:52:10)
    at Class.postBuild (/Users/cvx/dev/ember-cli-fastboot-testing/index.js:137:23)
    at addonPromises.project.addons.reduce (/Users/cvx/dev/ember-cli-fastboot-testing/node_modules/ember-cli/lib/models/builder.js:133:28)
    at Array.reduce (native)
    at Builder.processAddonBuildSteps (/Users/cvx/dev/ember-cli-fastboot-testing/node_modules/ember-cli/lib/models/builder.js:130:43)
    at tryCatcher (/Users/cvx/dev/ember-cli-fastboot-testing/node_modules/ember-cli/node_modules/rsvp/dist/lib/rsvp/-internal.js:39:19)
    at invokeCallback (/Users/cvx/dev/ember-cli-fastboot-testing/node_modules/ember-cli/node_modules/rsvp/dist/lib/rsvp/-internal.js:211:31)
    at publish (/Users/cvx/dev/ember-cli-fastboot-testing/node_modules/ember-cli/node_modules/rsvp/dist/lib/rsvp/-internal.js:197:7)
    at flush (/Users/cvx/dev/ember-cli-fastboot-testing/node_modules/ember-cli/node_modules/rsvp/dist/lib/rsvp/asap.js:80:5)
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickDomainCallback (internal/process/next_tick.js:128:9)

from ember-cli-fastboot-testing.

ryanto avatar ryanto commented on July 20, 2024

Oh, it might be because CI has env CI=true which changes Ember's targets/build output. (We just ran into this with mirage)

Also, I'm all for dropping node 6 at this point. Might as well support 8+

from ember-cli-fastboot-testing.

CvX avatar CvX commented on July 20, 2024

Oh, it might be because CI has env CI=true which changes Ember's targets/build output. (We just ran into this with mirage)

Yeah, that's probably it. Super confusing! 😄

Also, I'm all for dropping node 6 at this point. Might as well support 8+

👍 🙂

from ember-cli-fastboot-testing.

CvX avatar CvX commented on July 20, 2024

Btw. the build of master branch passed (incl. the deploy stage). I think we can close this issue. 🙂

from ember-cli-fastboot-testing.

ryanto avatar ryanto commented on July 20, 2024

👍

from ember-cli-fastboot-testing.

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.