Skip to content

Unterminated string constant #143

@allthesignals

Description

@allthesignals

Describe the bug
I've run into a really baffling problem where I cannot get my Ember app to build due to an "unterminated string constant" during the rollup process.

image

I cannot understand where the source of the issue is.

    "@fortawesome/ember-fontawesome": "^0.2.1",
    "@fortawesome/free-brands-svg-icons": "^5.2.0",
    "@fortawesome/free-regular-svg-icons": "^5.1.0",
    "@fortawesome/free-solid-svg-icons": "^5.2.0",

Here's my yarn.lock: https://gist.github.com/allthesignals/9ff91ab416910c26edfb1278f2cbcb3f#file-yarn-lock

Here are the contents of the log file.

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

ENV Summary:

TIME: Tue Apr 21 2020 22:33:12 GMT-0400 (Eastern Daylight Time)
TITLE: ember
ARGV:

  • /Users/wmattgardner/.nvm/versions/node/v10.15.3/bin/node
  • /usr/local/bin/ember
  • s
    EXEC_PATH: /Users/wmattgardner/.nvm/versions/node/v10.15.3/bin/node
    TMPDIR: /var/folders/x5/wkqy3c414sjgdr1j2498xzq40000gr/T
    SHELL: /bin/bash
    PATH:
  • /Users/wmattgardner/.rvm/gems/ruby-2.6.4/bin
  • /Users/wmattgardner/.rvm/gems/ruby-2.6.4@global/bin
  • /Users/wmattgardner/.rvm/rubies/ruby-2.6.4/bin
  • /Users/wmattgardner/.nvm/versions/node/v10.15.3/bin
  • ~/bin
  • /usr/local/sbin
  • /usr/local/bin
  • /usr/bin
  • /bin
  • /usr/sbin
  • /sbin
  • /Users/wmattgardner/.rvm/bin
    PLATFORM: darwin x64
    FREEMEM: 50106368
    TOTALMEM: 8589934592
    UPTIME: 2872
    LOADAVG: 16.23779296875,11.29345703125,9.470703125
    CPUS:
  • Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz - 2300
  • Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz - 2300
  • Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz - 2300
  • Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz - 2300
    ENDIANNESS: LE
    VERSIONS:
  • ares: 1.15.0
  • cldr: 33.1
  • http_parser: 2.8.0
  • icu: 62.1
  • modules: 64
  • napi: 3
  • nghttp2: 1.34.0
  • node: 10.15.3
  • openssl: 1.1.0j
  • tz: 2018e
  • unicode: 11.0
  • uv: 1.23.2
  • v8: 6.8.275.32-node.51
  • zlib: 1.2.11

ERROR Summary:

  • broccoliBuilderErrorStack: Error: Unterminated string constant
    at error (/Users/wmattgardner/labs-zap-search/node_modules/broccoli-rollup/node_modules/rollup/dist/rollup.js:224:15)
    at Module.error (/Users/wmattgardner/labs-zap-search/node_modules/broccoli-rollup/node_modules/rollup/dist/rollup.js:16788:9)
    at tryParse (/Users/wmattgardner/labs-zap-search/node_modules/broccoli-rollup/node_modules/rollup/dist/rollup.js:16459:16)
    at Module.setSource (/Users/wmattgardner/labs-zap-search/node_modules/broccoli-rollup/node_modules/rollup/dist/rollup.js:16514:24)
    at /Users/wmattgardner/labs-zap-search/node_modules/broccoli-rollup/node_modules/rollup/dist/rollup.js:19375:20
  • code: [undefined]
  • codeFrame: Unterminated string constant
  • errorMessage: Unterminated string constant
    at free-solid-svg-icons-rollup
    -- created here: --
    at new Plugin (/Users/wmattgardner/labs-zap-search/node_modules/broccoli-plugin/index.js:7:31)
    at new Rollup (/Users/wmattgardner/labs-zap-search/node_modules/broccoli-rollup/dist/index.js:39:9)
    at Object.keys.forEach.pack (/Users/wmattgardner/labs-zap-search/node_modules/@fortawesome/ember-fontawesome/index.js:37:26)
    at Array.forEach ()
    at Class.treeForVendor (/Users/wmattgardner/labs-zap-search/node_modules/@fortawesome/ember-fontawesome/index.js:26:47)
    at Class._treeFor (/Users/wmattgardner/labs-zap-search/node_modules/ember-cli/lib/models/addon.js:668:33)
    at Class.treeFor (/Users/wmattgardner/labs-zap-search/node_modules/ember-cli/lib/models/addon.js:628:21)
    at project.addons.reduce (/Users/wmattgardner/labs-zap-search/node_modules/ember-cli/lib/broccoli/ember-app.js:701:26)
    at Array.reduce ()
    at EmberApp._addonTreesFor (/Users/wmattgardner/labs-zap-search/node_modules/ember-cli/lib/broccoli/ember-app.js:699:32)
    -- (end) --
  • errorType: Build Error
  • location:
    • column: [undefined]
    • file: [undefined]
    • line: [undefined]
    • treeDir: [undefined]
  • message: Unterminated string constant
    at free-solid-svg-icons-rollup
    -- created here: --
    at new Plugin (/Users/wmattgardner/labs-zap-search/node_modules/broccoli-plugin/index.js:7:31)
    at new Rollup (/Users/wmattgardner/labs-zap-search/node_modules/broccoli-rollup/dist/index.js:39:9)
    at Object.keys.forEach.pack (/Users/wmattgardner/labs-zap-search/node_modules/@fortawesome/ember-fontawesome/index.js:37:26)
    at Array.forEach ()
    at Class.treeForVendor (/Users/wmattgardner/labs-zap-search/node_modules/@fortawesome/ember-fontawesome/index.js:26:47)
    at Class._treeFor (/Users/wmattgardner/labs-zap-search/node_modules/ember-cli/lib/models/addon.js:668:33)
    at Class.treeFor (/Users/wmattgardner/labs-zap-search/node_modules/ember-cli/lib/models/addon.js:628:21)
    at project.addons.reduce (/Users/wmattgardner/labs-zap-search/node_modules/ember-cli/lib/broccoli/ember-app.js:701:26)
    at Array.reduce ()
    at EmberApp._addonTreesFor (/Users/wmattgardner/labs-zap-search/node_modules/ember-cli/lib/broccoli/ember-app.js:699:32)
    -- (end) --
  • name: Error
  • nodeAnnotation: [undefined]
  • nodeName: free-solid-svg-icons-rollup
  • originalErrorMessage: Unterminated string constant
  • stack: Error: Unterminated string constant
    at error (/Users/wmattgardner/labs-zap-search/node_modules/broccoli-rollup/node_modules/rollup/dist/rollup.js:224:15)
    at Module.error (/Users/wmattgardner/labs-zap-search/node_modules/broccoli-rollup/node_modules/rollup/dist/rollup.js:16788:9)
    at tryParse (/Users/wmattgardner/labs-zap-search/node_modules/broccoli-rollup/node_modules/rollup/dist/rollup.js:16459:16)
    at Module.setSource (/Users/wmattgardner/labs-zap-search/node_modules/broccoli-rollup/node_modules/rollup/dist/rollup.js:16514:24)
    at /Users/wmattgardner/labs-zap-search/node_modules/broccoli-rollup/node_modules/rollup/dist/rollup.js:19375:20

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions