Project not starting after an update to 3.4

I just updated my project from 2.18 to 3.4 WHen I start ember serve, it fails to launch with the following error :

ENV Summary:

  TIME: Thu Sep 09 2021 17:59:44 GMT+0200 (heure d’été d’Europe centrale)
  TITLE: ember
  ARGV:
  - /home/sylvain/.nvm/versions/node/v14.17.6/bin/node
  - /usr/local/bin/ember
  - serve
  EXEC_PATH: /home/sylvain/.nvm/versions/node/v14.17.6/bin/node
  TMPDIR: /tmp
  SHELL: /usr/bin/zsh
  PATH:
  - /home/sylvain/.nvm/versions/node/v14.17.6/bin
  - /home/sylvain/.rvm/gems/ruby-2.5.1/bin
  - /home/sylvain/.rvm/gems/ruby-2.5.1@global/bin
  - /home/sylvain/.rvm/rubies/ruby-2.5.1/bin
  - /usr/local/sbin
  - /usr/local/bin
  - /usr/sbin
  - /usr/bin
  - /sbin
  - /bin
  - /usr/games
  - /usr/local/games
  - /snap/bin
  - /home/sylvain/.rvm/bin
  - /home/sylvain/.rvm/bin
  - /home/sylvain/.rvm/bin
  PLATFORM: linux x64
  FREEMEM: 71540736
  TOTALMEM: 2084081664
  UPTIME: 137493.79
  LOADAVG: 1.29,0.93,0.6
  CPUS:
  - Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz - 4008
  - Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz - 4008
  ENDIANNESS: LE
  VERSIONS:
  - ares: 1.17.2
  - brotli: 1.0.9
  - cldr: 39.0
  - icu: 69.1
  - llhttp: 2.1.3
  - modules: 83
  - napi: 8
  - nghttp2: 1.42.0
  - node: 14.17.6
  - openssl: 1.1.1l
  - tz: 2021a
  - unicode: 13.0
  - uv: 1.41.0
  - v8: 8.4.371.23-node.76
  - zlib: 1.2.11

ERROR Summary:

  - broccoliBuilderErrorStack: TypeError: /home/sylvain/dev/place-de-marche/marketadmin/ember-render-helpers/types.ts: Property specifiers expected type of array but got null
    at validate (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/@babel/types/lib/definitions/utils.js:161:13)
    at Object.validate (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/@babel/types/lib/definitions/utils.js:172:7)
    at validate (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/@babel/types/lib/validators/validate.js:17:9)
    at builder (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/@babel/types/lib/builders/builder.js:46:27)
    at Object.ExportNamedDeclaration (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/@babel/types/lib/builders/generated/index.js:465:31)
    at PluginPass.exit (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/@babel/plugin-transform-typescript/lib/index.js:270:52)
    at newFn (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/ember-render-helpers/node_modules/@babel/traverse/lib/visitors.js:177:21)
    at NodePath._call (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/ember-render-helpers/node_modules/@babel/traverse/lib/path/context.js:53:20)
    at NodePath.call (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/ember-render-helpers/node_modules/@babel/traverse/lib/path/context.js:40:17)
    at NodePath.visit (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/ember-render-helpers/node_modules/@babel/traverse/lib/path/context.js:99:8)
  - code: [undefined]
  - codeFrame: /home/sylvain/dev/place-de-marche/marketadmin/ember-render-helpers/types.ts: Property specifiers expected type of array but got null
  - errorMessage: ember-render-helpers/types.ts: /home/sylvain/dev/place-de-marche/marketadmin/ember-render-helpers/types.ts: Property specifiers expected type of array but got null
        in /tmp/broccoli-1141061jGbBwEz8vcQ/out-248-funnel
        at broccoli-persistent-filter:Babel > [Babel: ember-render-helpers] (Babel: ember-render-helpers)
  - errorType: Build Error
  - location:
    - column: [undefined]
    - file: ember-render-helpers/types.ts
    - line: [undefined]
    - treeDir: /tmp/broccoli-1141061jGbBwEz8vcQ/out-248-funnel
  - message: ember-render-helpers/types.ts: /home/sylvain/dev/place-de-marche/marketadmin/ember-render-helpers/types.ts: Property specifiers expected type of array but got null
        in /tmp/broccoli-1141061jGbBwEz8vcQ/out-248-funnel
        at broccoli-persistent-filter:Babel > [Babel: ember-render-helpers] (Babel: ember-render-helpers)
  - name: Error
  - nodeAnnotation: Babel: ember-render-helpers
  - nodeName: broccoli-persistent-filter:Babel > [Babel: ember-render-helpers]
  - originalErrorMessage: /home/sylvain/dev/place-de-marche/marketadmin/ember-render-helpers/types.ts: Property specifiers expected type of array but got null
  - stack: TypeError: /home/sylvain/dev/place-de-marche/marketadmin/ember-render-helpers/types.ts: Property specifiers expected type of array but got null
    at validate (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/@babel/types/lib/definitions/utils.js:161:13)
    at Object.validate (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/@babel/types/lib/definitions/utils.js:172:7)
    at validate (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/@babel/types/lib/validators/validate.js:17:9)
    at builder (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/@babel/types/lib/builders/builder.js:46:27)
    at Object.ExportNamedDeclaration (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/@babel/types/lib/builders/generated/index.js:465:31)
    at PluginPass.exit (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/@babel/plugin-transform-typescript/lib/index.js:270:52)
    at newFn (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/ember-render-helpers/node_modules/@babel/traverse/lib/visitors.js:177:21)
    at NodePath._call (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/ember-render-helpers/node_modules/@babel/traverse/lib/path/context.js:53:20)
    at NodePath.call (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/ember-render-helpers/node_modules/@babel/traverse/lib/path/context.js:40:17)
    at NodePath.visit (/home/sylvain/dev/place-de-marche/marketadmin/node_modules/ember-render-helpers/node_modules/@babel/traverse/lib/path/context.js:99:8)

=================================================================================

ember-render-helpers is using 0.2.0 version, it’s the latest version. It seems to be a typescript error in this dependency. What should I do ?

You should try downgrading ember-render-helpers. In the release notes for 0.2.0 it says:

  • chore(ci): drop Ember <3.8 support ecf7fc9

So you’ll need to be on Ember 3.8+ to use 0.2.0

2 Likes

You are right, I downgraded ember-bootstrap to 3.1.4 and now it works.