IHTSDO / health-data-analytics-ui-v1

Original version of the user interface for the SNOMED Analytics demonstrator. Written using Ember.js.
Other
3 stars 3 forks source link

Build Error (SourceMapConcat) #2

Open johngrimes opened 5 years ago

johngrimes commented 5 years ago

When I try to run ember server, I get the following error:

Build Error (SourceMapConcat)

ENOENT: no such file or directory, open '/Users/gri306/Code/health-data-analytics-frontend/tmp/source_map_concat-input_base_path-RY97ta1P.tmp/vendor/d3-array/d3-array.js'

Stack Trace and Error Report: /var/folders/bp/5yb__sbj2s32mwnrpt4psjj400pm6n/T/error.dump.aa54dbb7a8c988e12b4e9b4d1e290b43.log

When I look inside the error report, there is a more detailed error:

ERROR Summary:

  - broccoliBuilderErrorStack: Error: ENOENT: no such file or directory, open '/Users/gri306/Code/health-data-analytics-frontend/tmp/source_map_concat-input_base_path-RY97ta1P.tmp/vendor/d3-array/d3-array.js'
    at Error (native)
    at Object.fs.openSync (fs.js:642:18)
    at Object.fs.readFileSync (fs.js:510:33)
    at SourceMap.addFile (/Users/gri306/Code/health-data-analytics-frontend/node_modules/fast-sourcemap-concat/lib/source-map.js:77:33)
    at headerFiles.forEach.file (/Users/gri306/Code/health-data-analytics-frontend/node_modules/broccoli-concat/concat.js:204:18)
    at Array.forEach (native)
    at Concat.concat.end.concat (/Users/gri306/Code/health-data-analytics-frontend/node_modules/broccoli-concat/concat.js:202:26)
    at /Users/gri306/Code/health-data-analytics-frontend/node_modules/fast-sourcemap-concat/lib/source-map.js:431:14
    at SourceMap.end (/Users/gri306/Code/health-data-analytics-frontend/node_modules/fast-sourcemap-concat/lib/source-map.js:418:12)
    at Concat._doLegacyBuild (/Users/gri306/Code/health-data-analytics-frontend/node_modules/broccoli-concat/concat.js:187:24)
  - codeFrame: ENOENT: no such file or directory, open '/Users/gri306/Code/health-data-analytics-frontend/tmp/source_map_concat-input_base_path-RY97ta1P.tmp/vendor/d3-array/d3-array.js'
  - errorMessage: Build Canceled: Broccoli Builder ran into an error with `SourceMapConcat` plugin. 💥
ENOENT: no such file or directory, open '/Users/gri306/Code/health-data-analytics-frontend/tmp/source_map_concat-input_base_path-RY97ta1P.tmp/vendor/d3-array/d3-array.js'
  - errorType: Build Error
  - location:
    - column: [undefined]
    - file: [undefined]
    - line: [undefined]
    - treeDir: [undefined]
  - message: Build Canceled: Broccoli Builder ran into an error with `SourceMapConcat` plugin. 💥
ENOENT: no such file or directory, open '/Users/gri306/Code/health-data-analytics-frontend/tmp/source_map_concat-input_base_path-RY97ta1P.tmp/vendor/d3-array/d3-array.js'
  - name: Error
  - nodeAnnotation: Vendor JS
  - nodeName: SourceMapConcat
  - originalErrorMessage: ENOENT: no such file or directory, open '/Users/gri306/Code/health-data-analytics-frontend/tmp/source_map_concat-input_base_path-RY97ta1P.tmp/vendor/d3-array/d3-array.js'
  - stack: Error: ENOENT: no such file or directory, open '/Users/gri306/Code/health-data-analytics-frontend/tmp/source_map_concat-input_base_path-RY97ta1P.tmp/vendor/d3-array/d3-array.js'
    at Error (native)
    at Object.fs.openSync (fs.js:642:18)
    at Object.fs.readFileSync (fs.js:510:33)
    at SourceMap.addFile (/Users/gri306/Code/health-data-analytics-frontend/node_modules/fast-sourcemap-concat/lib/source-map.js:77:33)
    at headerFiles.forEach.file (/Users/gri306/Code/health-data-analytics-frontend/node_modules/broccoli-concat/concat.js:204:18)
    at Array.forEach (native)
    at Concat.concat.end.concat (/Users/gri306/Code/health-data-analytics-frontend/node_modules/broccoli-concat/concat.js:202:26)
    at /Users/gri306/Code/health-data-analytics-frontend/node_modules/fast-sourcemap-concat/lib/source-map.js:431:14
    at SourceMap.end (/Users/gri306/Code/health-data-analytics-frontend/node_modules/fast-sourcemap-concat/lib/source-map.js:418:12)
    at Concat._doLegacyBuild (/Users/gri306/Code/health-data-analytics-frontend/node_modules/broccoli-concat/concat.js:187:24)
Chris-Swires commented 5 years ago

Hi @johngrimes - One of the d3 dependencies in place has been deprecated which is causing the failure (used by ember-charts). That dependency has been removed in develop here: https://github.com/IHTSDO/health-data-analytics-frontend/commit/31677e9aa7c2773a2b894d1c6a511d0ca951f63c

The commit has not yet made it into master thanks to a regression elsewhere in the code base, I'll take a look at picking the dependency change alone in the coming days to resolve the issue.