Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[email protected] - Cannot read property 'indexOf' of null #19800

Closed
Timbuktu1982 opened this issue Oct 22, 2021 · 8 comments
Closed

[email protected] - Cannot read property 'indexOf' of null #19800

Timbuktu1982 opened this issue Oct 22, 2021 · 8 comments

Comments

@Timbuktu1982
Copy link

Hey there...

Since [email protected] we cannot build or serve apps. The builder throw following critical error:

Build Error (broccoli-persistent-filter:Babel > [Babel: @ember/test-helpers]) in @ember/test-helpers/setup-rendering-context.js
/var/www/apps/tmp/tester/@ember/test-helpers/setup-rendering-context.js: Cannot read property 'indexOf' of null

Here the log:

ENV Summary:

TIME: Fri Oct 22 2021 14:49:06 GMT+0200 (Mitteleuropäische Sommerzeit)
TITLE: ember
ARGV:

  • /usr/local/bin/node
  • /usr/local/bin/ember
  • s
    EXEC_PATH: /usr/local/bin/node
    TMPDIR: /tmp
    SHELL: /bin/bash
    PATH:
  • /usr/lib/jvm/java-1.8.0-openjdk-amd64/bin
  • /usr/bin/watchman
  • /opt/xcode/bin
  • /usr/lib/jvm/java-1.8.0-openjdk-amd64/bin
  • /usr/bin/watchman
  • /opt/xcode/bin
  • /usr/local/sbin
  • /usr/local/bin
  • /usr/sbin
  • /usr/bin
  • /sbin
  • /bin
  • /usr/games
  • /usr/local/games
  • /snap/bin
  • /snap/bin
  • /opt/gradle/gradle-7.2/bin
  • /opt/gradle/gradle-7.2/bin
    PLATFORM: linux x64
    FREEMEM: 1293692928
    TOTALMEM: 25064050688
    UPTIME: 203505.09
    LOADAVG: 1.15,1.63,2.67
    CPUS:
  • Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz - 3203
  • Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz - 3289
  • Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz - 3197
  • Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz - 3181
    ENDIANNESS: LE
    VERSIONS:
  • ares: 1.17.1
  • 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.4
  • openssl: 1.1.1k
  • tz: 2021a
  • unicode: 13.0
  • uv: 1.41.0
  • v8: 8.4.371.23-node.76
  • zlib: 1.2.11

ERROR Summary:

  • broccoliBuilderErrorStack: TypeError: /var/www/apps/tmp/tester/@ember/test-helpers/setup-rendering-context.js: Cannot read property 'indexOf' of null
    at ProgramSymbolTable.has (/var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:13618:34)
    at BlockContext.hasBinding (/var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:14324:25)
    at ExpressionNormalizer.ref (/var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:14477:23)
    at ExpressionNormalizer.path (/var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:14404:43)
    at ExpressionNormalizer.normalize (/var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:14371:23)
    at ExpressionNormalizer.callParts (/var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:14418:25)
    at StatementNormalizer.MustacheStatement (/var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:14581:33)
    at StatementNormalizer.normalize (/var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:14525:23)
    at /var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:14249:25
    at Array.map ()
  • code: [undefined]
  • codeFrame: /var/www/apps/tmp/tester/@ember/test-helpers/setup-rendering-context.js: Cannot read property 'indexOf' of null
  • errorMessage: @ember/test-helpers/setup-rendering-context.js: /var/www/apps/tmp/tester/@ember/test-helpers/setup-rendering-context.js: Cannot read property 'indexOf' of null
    in /var/www/apps/tmp/tester/node_modules/@ember/test-helpers/addon-test-support
    at broccoli-persistent-filter:Babel > [Babel: @ember/test-helpers] (Babel: @ember/test-helpers)
  • errorType: Build Error
  • location:
    • column: [undefined]
    • file: @ember/test-helpers/setup-rendering-context.js
    • line: [undefined]
    • treeDir: /var/www/apps/tmp/tester/node_modules/@ember/test-helpers/addon-test-support
  • message: @ember/test-helpers/setup-rendering-context.js: /var/www/apps/tmp/tester/@ember/test-helpers/setup-rendering-context.js: Cannot read property 'indexOf' of null
    in /var/www/apps/tmp/tester/node_modules/@ember/test-helpers/addon-test-support
    at broccoli-persistent-filter:Babel > [Babel: @ember/test-helpers] (Babel: @ember/test-helpers)
  • name: Error
  • nodeAnnotation: Babel: @ember/test-helpers
  • nodeName: broccoli-persistent-filter:Babel > [Babel: @ember/test-helpers]
  • originalErrorMessage: /var/www/apps/tmp/tester/@ember/test-helpers/setup-rendering-context.js: Cannot read property 'indexOf' of null
  • stack: TypeError: /var/www/apps/tmp/tester/@ember/test-helpers/setup-rendering-context.js: Cannot read property 'indexOf' of null
    at ProgramSymbolTable.has (/var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:13618:34)
    at BlockContext.hasBinding (/var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:14324:25)
    at ExpressionNormalizer.ref (/var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:14477:23)
    at ExpressionNormalizer.path (/var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:14404:43)
    at ExpressionNormalizer.normalize (/var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:14371:23)
    at ExpressionNormalizer.callParts (/var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:14418:25)
    at StatementNormalizer.MustacheStatement (/var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:14581:33)
    at StatementNormalizer.normalize (/var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:14525:23)
    at /var/www/apps/tmp/tester/node_modules/ember-source/dist/ember-template-compiler.js:14249:25
    at Array.map ()

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

@Timbuktu1982
Copy link
Author

Sorry, completely forgotten: I get the error with new apps as well as old ones as soon as I upgrade from [email protected] to [email protected] and serve or build.

@jherdman
Copy link
Contributor

Can confirm everything above. I haven't been able to pin this down further.

@SergeAstapov
Copy link
Contributor

SergeAstapov commented Oct 22, 2021

#19799 was released as [email protected] got released 4 hours ago, just a side note

EDIT: issue persists with 3.28.3 so unrelated, link to CI run https://github.com/SergeAstapov/ember-exam/runs/3977869489?check_suite_focus=true
version used: 3.28.1

EDIT2: issue does not represents itself with 3.28.1, link to CI run https://github.com/SergeAstapov/ember-exam/runs/3978101057?check_suite_focus=true
version used: 3.28.3-release+69324901

@rwjblue
Copy link
Member

rwjblue commented Oct 22, 2021

Really sorry about this, I screwed up the backporting one of the fixes. 3.28.4 is on it's way through the pipeline to fix. 🤦

@SergeAstapov
Copy link
Contributor

Duplicate of #19797.

@rwjblue
Copy link
Member

rwjblue commented Oct 22, 2021

I've tested with local builds on 3.28.3 and that tag, once https://github.com/emberjs/ember.js/actions/runs/1373035405 is completed 3.28.4 will be published with the fix.

@jherdman
Copy link
Contributor

@rwjblue our sincere thanks as always for being so quick to resolve these things 😍

@rwjblue rwjblue closed this as completed Oct 22, 2021
@Timbuktu1982
Copy link
Author

Thank you for your support (sorry, the 19797 was not available as an open issue at the time of my post)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants