Comments (8)
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.
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.
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.
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.
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.
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.
Btw. the build of master
branch passed (incl. the deploy
stage). I think we can close this issue. 🙂
from ember-cli-fastboot-testing.
👍
from ember-cli-fastboot-testing.
Related Issues (20)
- Does not work with path=dist HOT 5
- Allow user to access fastboot instance in fastboot-testing.js config HOT 5
- Allow user to pass functions inside the `options` parameter while calling `visit` HOT 1
- Support for ember projects with a rootURL containing a subdirectory HOT 3
- Deprecation Warning in Ember 3.9+ HOT 2
- Visit helper not returning correct content upon using `this.replaceWith` for redirection HOT 4
- FastBoot.distPath returns deleted path upon running `ember test` HOT 2
- Allow for custom host in mockServer calls HOT 2
- mockServer.get not working HOT 6
- Error messages are not escaped
- Build fails with latest Babel.js
- A future for this repo. HOT 4
- najax not present when using jQuery in v0.4/v0.5 HOT 1
- Add ability to specify response headers in mocked responses HOT 1
- Use config/fastboot.js instead of separate config/fastboot-testing.js HOT 2
- Config not working HOT 5
- [0.6.0] req.headers.origin undefined in CLI mode
- Skip outputReady in production builds HOT 4
- Cut new release v0.6.1 HOT 4
- Monorepo support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-cli-fastboot-testing.