question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WARNING: Your build is slower because some babel plugins are non-serializable []

See original GitHub issue
Building into /private/var/folders/6y/_8qpkt114jzb442txt_9w_2c0000gn/T/embroider-cjbPbI
WARNING: Your build is slower because some babel plugins are non-serializable []

I suppose the above warning was supposed to include the names of the plugins that are not serializable, but apparently this was not the case. Is there another way to find out what went wrong here?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ef4commented, Mar 19, 2019

Some of this is self-inflicted right now, because some of our own AST transforms are not serializable. (AST transforms are not babel plugins, but they do need to run inside the inline-hbs babel plugin, so their serializability matters.)

We definitely need a better message here though, because even once we fix our own there will still be cases where users have non-serializable plugins.

One way to check what is causing the problem is to inspect _babel_config_.js and _template_compiler_.js in the intermediate build directory (the directory name prints on the console as “Building into…” at the start of the build). Anything in those files that says:

{
  "embroiderPlaceholder": true,
  "type": "global",
}

is encoding a non-serializable value.

0reactions
villandercommented, Apr 21, 2019

I’m using ember-cli 3.9.0 with "ember-cli-template-lint": "^1.0.0-beta.1"

follow my package.json

{
  "name": "web-app",
  "version": "2.12.0",
  "main": "app/index.html",
  "private": true,
  "description": "Ember front-end for Company",
  "repository": "git@github.com:my-company/web_app.git",
  "license": "MIT",
  "author": "Engineering @ MyCompany <engineering@my-company.com>",
  "directories": {
    "doc": "doc",
    "test": "tests"
  },
  "scripts": {
    "build": "ember build",
    "changelog": "lerna-changelog",
    "lint:hbs": "ember-template-lint .",
    "lint:js": "eslint .",
    "start": "ember serve",
    "test": "ember test"
  },
  "devDependencies": {
    "@ember/jquery": "^0.5.2",
    "@ember/optional-features": "^0.6.3",
    "@embroider/compat": "^0.3.4",
    "@embroider/core": "^0.3.4",
    "@embroider/router": "^0.3.4",
    "@embroider/webpack": "^0.3.4",
    "@paycertify/assets": "0.0.44",
    "awesomplete": "^1.1.2",
    "broccoli-asset-rev": "^2.7.0",
    "country-region-selector": "^0.4.1",
    "ember-ace": "^2.0.1",
    "ember-ajax": "^5.0.0",
    "ember-auto-import": "^1.2.13",
    "ember-cli": "~3.9.0",
    "ember-cli-app-version": "^3.2.0",
    "ember-cli-babel": "^7.1.2",
    "ember-cli-code-coverage": "^1.0.0-beta.8",
    "ember-cli-dependency-checker": "^3.1.0",
    "ember-cli-deploy": "^1.0.2",
    "ember-cli-deploy-build": "^1.1.1",
    "ember-cli-deploy-revision-data": "^1.0.0",
    "ember-cli-deploy-scp": "^1.0.12",
    "ember-cli-deploy-sentry": "^0.6.0",
    "ember-cli-dotenv": "^2.0.0",
    "ember-cli-eslint": "^4.2.3",
    "ember-cli-head": "^0.4.1",
    "ember-cli-htmlbars": "^3.0.0",
    "ember-cli-htmlbars-inline-precompile": "^1.0.3",
    "ember-cli-inject-live-reload": "^1.8.2",
    "ember-cli-mirage": "^0.4.15",
    "ember-cli-moment-shim": "^3.5.0",
    "ember-cli-sass": "^7.1.4",
    "ember-cli-sentry": "^4.0.0",
    "ember-cli-sri": "^2.1.1",
    "ember-cli-template-lint": "^1.0.0-beta.1",
    "ember-cli-tooltipster": "^0.10.0",
    "ember-cli-uglify": "^2.1.0",
    "ember-concurrency": "^0.8.27",
    "ember-data": "~3.9.0",
    "ember-export-application-global": "^2.0.0",
    "ember-flatpickr": "^2.6.1",
    "ember-i18n": "^5.3.0",
    "ember-load-initializers": "^1.1.0",
    "ember-maybe-import-regenerator": "^0.1.6",
    "ember-metrics": "^0.13.0",
    "ember-moment": "^7.6.0",
    "ember-qunit": "^3.4.1",
    "ember-resolver": "^5.0.1",
    "ember-simple-auth": "^1.7.0",
    "ember-source": "~3.9.0",
    "ember-test-selectors": "^1.0.0",
    "ember-truth-helpers": "^2.0.0",
    "ember-window-mock": "^0.5.3",
    "eslint-plugin-ember": "^5.2.0",
    "flag-icon-css": "^3.0.0",
    "highcharts": "^6.0.6",
    "lerna-changelog": "^0.8.2",
    "loader.js": "^4.7.0",
    "print-this": "^1.14.1",
    "qunit-dom": "^0.8.4",
    "sinon": "^7.2.3",
    "tooltipster": "^4.2.5",
    "webpack-bundle-analyzer": "^3.3.2",
    "yuidoc-ember-theme": "^2.0.1"
  },
  "engines": {
    "node": "6.* || 8.* || >= 10.*"
  },
  "changelog": {
    "repo": "my-company/web_app",
    "labels": {
      "breaking": ":boom: Breaking Change",
      "enhancement": ":rocket: Enhancement",
      "bug": ":bug: Bug Fix",
      "documentation": ":memo: Documentation",
      "internal": ":house: Internal"
    }
  }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot run tests when building embroider · Issue #384 - GitHub
I was able to sucesfully build our app with embroider, but could not run ... WARNING: Your build is slower because some babel...
Read more >
Building Ember with Webpack via Embroider?
(Today if you see the warning Your build is slower because some babel plugins are non-serializable , that's because we're falling back to ......
Read more >
Plugins - Babel
Plugins. Babel's code transformations are enabled by applying plugins (or presets) to your configuration file.
Read more >
Configuration Reference | Vue CLI
If build performance is a concern, you can explicitly transpile only some of the dependencies by passing an array of package names or...
Read more >
Troubleshooting | React Navigation
Before troubleshooting an issue, make sure that you have upgraded to the ... I get the warning "Non-serializable values were found in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found