You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mansona thanks for an exciting demo today during the Ember.js Europe meetup🚀 I tried the steps tonight on my own app, and it turns out I belong to the 40% that wouldn't get vite to run with ember-source 5.7.0:)
Since ember-headless-table is a V2 addon that works well in webpack, I am posting it as an issue here, and not on the addon repo.
✘ [ERROR] Expected identifier but found "*"
node_modules/.pnpm/ember-headless-table@2.1.4_@babel+core@7.24.3_@ember+test-helpers@3.3.0_@ember+test-waiters@3_iveooflb4fr3ajv754gzshjrpu/node_modules/ember-headless-table/dist/table-443deac1.js:3:18:
3 │ import { tracked, * as _importSync0 } from '@glimmer/tracking';
╵ ^
~/ember-vite-app/node_modules/.pnpm/esbuild@0.20.2/node_modules/esbuild/lib/main.js:1651
let error = new Error(text);
^
Error: Build failed with 1 error:
node_modules/.pnpm/ember-headless-table@2.1.4_@babel+core@7.24.3_@ember+test-helpers@3.3.0_@ember+test-waiters@3_iveooflb4fr3ajv754gzshjrpu/node_modules/ember-headless-table/dist/table-443deac1.js:3:18: ERROR: Expected identifier but found "*"
at failureErrorWithLog (~/ember-vite-app/node_modules/.pnpm/esbuild@0.20.2/node_modules/esbuild/lib/main.js:1651:15)
at ~/ember-vite-app/node_modules/.pnpm/esbuild@0.20.2/node_modules/esbuild/lib/main.js:1059:25
at ~/ember-vite-app/node_modules/.pnpm/esbuild@0.20.2/node_modules/esbuild/lib/main.js:1527:9
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errors: [Getter/Setter],
warnings: [Getter/Setter]
}
The compiled V2 output of the addon seems to include an importSync reference to @glimmer/tracking and ember-cached-decorator-polyfill:
@mansona thanks for an exciting demo today during the Ember.js Europe meetup🚀 I tried the steps tonight on my own app, and it turns out I belong to the 40% that wouldn't get vite to run with ember-source 5.7.0:)
Since
ember-headless-table
is a V2 addon that works well in webpack, I am posting it as an issue here, and not on the addon repo.Steps to reproduce:
ember-headless-table-expected-identifier-on-cached-decorator
branch in this repository: https://github.com/johanrd/ember-vite-apppnpm vite
The compiled V2 output of the addon seems to include an
importSync
reference to@glimmer/tracking
andember-cached-decorator-polyfill
:Perhaps the use of
ember-cached-decorator-polyfill
is the issue here? not sure. Possibly also related to #1672?The text was updated successfully, but these errors were encountered: