ember build --watch fails with '[NodeWrapper:4 /path/to/some/folder] is not a SourceNode' when the app name contains 'ember-data' anywhere #10369
Open
Description
Output from `ember version --verbose && npm --version && pnpm --version`
ember-cli: 5.2.1
node: 16.18.1
v8: 9.4.146.26-node.22
uv: 1.43.0
zlib: 1.2.11
brotli: 1.0.9
ares: 1.18.1
modules: 93
nghttp2: 1.47.0
napi: 8
llhttp: 6.0.10
openssl: 1.1.1q+quic
cldr: 41.0
icu: 71.1
tz: 2022b
unicode: 14.0
ngtcp2: 0.8.1
nghttp3: 0.7.0
os: darwin x64
8.19.2
8.6.9
The error I'm getting is [NodeWrapper:4 /Users/mansona/temp/ember-data-watch-problem/node_modules/ember-cli-test-loader/test-support] is not a SourceNode
Full error log
=================================================================================
ENV Summary:
TIME: Mon Sep 04 2023 16:36:40 GMT+0100 (Irish Standard Time)
TITLE: ember
ARGV:
- /Users/mansona/.nvm/versions/node/v16.18.1/bin/node
- /opt/homebrew/bin/ember
- build
- --watch
EXEC_PATH: /Users/mansona/.nvm/versions/node/v16.18.1/bin/node
TMPDIR: /var/folders/r5/bw5frvnn5k794hk62w3vp7km0000gn/T
SHELL: /bin/zsh
PATH:
- /Users/mansona/.nvm/versions/node/v16.18.1/bin
- /Users/mansona/.rvm/gems/ruby-2.6.3/bin
- /Users/mansona/.rvm/gems/ruby-2.6.3@global/bin
- /Users/mansona/.rvm/rubies/ruby-2.6.3/bin
- /Users/mansona/Library/pnpm
- /Users/mansona/.pyenv/shims
- /Users/mansona/Library/Android/sdk/platform-tools
- /Users/mansona/Library/Android/sdk/tools
- /Users/mansona/google-cloud-sdk/bin
- /opt/homebrew/bin
- /opt/homebrew/sbin
- /usr/local/bin
- /System/Cryptexes/App/usr/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /usr/local/go/bin
- /usr/local/MacGPG2/bin
- /Library/Apple/usr/bin
- /Library/Frameworks/Mono.framework/Versions/Current/Commands
- /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin
- /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin
- /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
- /Users/mansona/.cargo/bin
- /Users/mansona/.rvm/bin
- /Users/mansona/go/bin
PLATFORM: darwin x64
FREEMEM: 296460288
TOTALMEM: 34359738368
UPTIME: 2356918
LOADAVG: 10.68115234375,9.1552734375,9.62939453125
CPUS:
- Apple M1 Pro - 24
- Apple M1 Pro - 24
- Apple M1 Pro - 24
- Apple M1 Pro - 24
- Apple M1 Pro - 24
- Apple M1 Pro - 24
- Apple M1 Pro - 24
- Apple M1 Pro - 24
- Apple M1 Pro - 24
- Apple M1 Pro - 24
ENDIANNESS: LE
VERSIONS:
- ares: 1.18.1
- brotli: 1.0.9
- cldr: 41.0
- icu: 71.1
- llhttp: 6.0.10
- modules: 93
- napi: 8
- nghttp2: 1.47.0
- nghttp3: 0.7.0
- ngtcp2: 0.8.1
- node: 16.18.1
- openssl: 1.1.1q+quic
- tz: 2022b
- unicode: 14.0
- uv: 1.43.0
- v8: 9.4.146.26-node.22
- zlib: 1.2.11
ERROR Summary:
- broccoliBuilderErrorStack: [undefined]
- code: [undefined]
- codeFrame: [undefined]
- errorMessage: [NodeWrapper:4 /Users/mansona/temp/ember-data-watch-problem/node_modules/ember-cli-test-loader/test-support] is not a SourceNode
- errorType: [undefined]
- location:
- column: [undefined]
- file: [undefined]
- line: [undefined]
- message: [NodeWrapper:4 /Users/mansona/temp/ember-data-watch-problem/node_modules/ember-cli-test-loader/test-support] is not a SourceNode
- name: Error
- nodeAnnotation: [undefined]
- nodeName: [undefined]
- originalErrorMessage: [undefined]
- stack: Error: [NodeWrapper:4 /Users/mansona/temp/ember-data-watch-problem/node_modules/ember-cli-test-loader/test-support] is not a SourceNode
at new WatcherAdapter (/Users/mansona/temp/ember-data-watch-problem/node_modules/broccoli/dist/watcher_adapter.js:20:23)
at new Watcher (/Users/mansona/temp/ember-data-watch-problem/node_modules/broccoli/dist/watcher.js:24:17)
at Watcher.constructBroccoliWatcher (/Users/mansona/temp/ember-data-watch-problem/node_modules/ember-cli/lib/models/watcher.js:62:19)
at async Watcher.setupBroccoliWatcher (/Users/mansona/temp/ember-data-watch-problem/node_modules/ember-cli/lib/models/watcher.js:43:37)
at async Function.build (/Users/mansona/temp/ember-data-watch-problem/node_modules/ember-cli/lib/models/watcher.js:31:5)
at async BuildWatchTask.run (/Users/mansona/temp/ember-data-watch-problem/node_modules/ember-cli/lib/tasks/build-watch.js:39:9)
at async Class.run (/Users/mansona/temp/ember-data-watch-problem/node_modules/ember-cli/lib/commands/build.js:29:5)
at async /Users/mansona/temp/ember-data-watch-problem/node_modules/ember-cli/lib/cli/cli.js:197:32
at async CLI.run (/Users/mansona/temp/ember-data-watch-problem/node_modules/ember-cli/lib/cli/cli.js:244:14)
at async module.exports (/Users/mansona/temp/ember-data-watch-problem/node_modules/ember-cli/lib/cli/index.js:145:12)
=================================================================================
Steps to reproduce
EMBER_CLI_PNPM=true npx ember-cli@latest new --pnpm ember-data-watch-problem
cd ember-data-watch-problem
ember build --watch
- 💥
Note: I tried it in both pnpm and npm and it had the same issue
Initial debugging
I tracked the issue down to this line: https://github.com/broccolijs/broccoli/blob/master/lib/watcher_adapter.ts#L29 (or rather the js built file that corresponds to that line) and in the debugger the value of node.constructor.name
is SourceNodeWrapper
Metadata
Assignees
Labels
No labels