adopted-ember-addons / ember-cli-hot-loader

An early look at what hot reloading might be like in the ember ecosystem
MIT License
99 stars 13 forks source link

Don't work with yarn workspaces #88

Closed shamcode closed 6 years ago

shamcode commented 6 years ago

Don't work with yarn workspaces:

=================================================================================
ERROR Summary:

  - broccoliBuilderErrorStack: Error: ENOENT: no such file or directory, open '/home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/ember-app/tmp/node_modules/ember-source/dist/ember-template-compiler.js'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at SourceMap.addFile (/home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/node_modules/fast-sourcemap-concat/lib/source-map.js:77:33)
    at headerFiles.forEach.file (/home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/node_modules/broccoli-concat/concat.js:201:18)
    at Array.forEach (<anonymous>)
    at Concat.concat.end.concat (/home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/node_modules/broccoli-concat/concat.js:199:26)
    at /home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/node_modules/fast-sourcemap-concat/lib/source-map.js:431:14
    at new Promise (<anonymous>)
    at SourceMap.end (/home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/node_modules/fast-sourcemap-concat/lib/source-map.js:418:12)
    at Concat._doLegacyBuild (/home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/node_modules/broccoli-concat/concat.js:184:24)
  - codeFrame: ENOENT: no such file or directory, open '/home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/ember-app/tmp/node_modules/ember-source/dist/ember-template-compiler.js'
  - errorMessage: Build Canceled: Broccoli Builder ran into an error with `SourceMapConcat` plugin. 💥
ENOENT: no such file or directory, open '/home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/ember-app/tmp/node_modules/ember-source/dist/ember-template-compiler.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 '/home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/ember-app/tmp/node_modules/ember-source/dist/ember-template-compiler.js'
  - name: Error
  - nodeAnnotation: Vendor JS
  - nodeName: SourceMapConcat
  - originalErrorMessage: ENOENT: no such file or directory, open '/home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/ember-app/tmp/node_modules/ember-source/dist/ember-template-compiler.js'
  - stack: Error: ENOENT: no such file or directory, open '/home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/ember-app/tmp/node_modules/ember-source/dist/ember-template-compiler.js'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at SourceMap.addFile (/home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/node_modules/fast-sourcemap-concat/lib/source-map.js:77:33)
    at headerFiles.forEach.file (/home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/node_modules/broccoli-concat/concat.js:201:18)
    at Array.forEach (<anonymous>)
    at Concat.concat.end.concat (/home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/node_modules/broccoli-concat/concat.js:199:26)
    at /home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/node_modules/fast-sourcemap-concat/lib/source-map.js:431:14
    at new Promise (<anonymous>)
    at SourceMap.end (/home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/node_modules/fast-sourcemap-concat/lib/source-map.js:418:12)
    at Concat._doLegacyBuild (/home/sham/work/ember-cli-hot-loader-with-yarn-worspaces/node_modules/broccoli-concat/concat.js:184:24)

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

Repo for reproduce.