Skip to content

using-amd-bundles deprecation cannot be silenced nor handled in new classic app in 6.10 #21064

@kategengler

Description

@kategengler

This is the output of a newly generated 6.10 app on classic https://github.com/kategengler/super-rentals-demo

if you run pnpm i; pnpm start

You'll see both terminal and console deprecations for using-amd-bundles deprecation added in 6.10.

deprecationWorkflow.flushDeprecations() in the console will not include using-amd-bundles deprecation. Adding it manually to app/deprecation-workflow.js does not silence it either.

Adding "use-ember-modules": true to config/optional-features.json causes this error when starting the app:

Unexpected token 'export'

 - stack: /Users/katie/dev/experiments/super-rentals-demo/node_modules/.pnpm/ember-source@6.10.0_@glimmer+component@2.0.0_rsvp@4.8.5/node_modules/ember-source/dist/packages/ember-template-compiler/index.js:13503
export { buildCompileOptions as _buildCompileOptions, preprocess as _preprocess, build as _print, precompile };
^^^^^^

SyntaxError: Unexpected token 'export'
    at new Script (node:vm:117:7)
    at getTemplateCompiler (/Users/katie/dev/experiments/super-rentals-demo/node_modules/.pnpm/ember-cli-htmlbars@6.3.0/node_modules/ember-cli-htmlbars/lib/utils.js:147:15)
    at Object.buildOptions (/Users/katie/dev/experiments/super-rentals-demo/node_modules/.pnpm/ember-cli-htmlbars@6.3.0/node_modules/ember-cli-htmlbars/lib/utils.js:102:23)
    at Class.htmlbarsOptions (/Users/katie/dev/experiments/super-rentals-demo/node_modules/.pnpm/ember-cli-htmlbars@6.3.0/node_modules/ember-cli-htmlbars/lib/ember-addon-main.js:279:18)
    at Object.toTree (/Users/katie/dev/experiments/super-rentals-demo/node_modules/.pnpm/ember-cli-htmlbars@6.3.0/node_modules/embe
r-cli-htmlbars/lib/ember-addon-main.js:88:43)
    at /Users/katie/dev/experiments/super-rentals-demo/node_modules/.pnpm/ember-cli-preprocess-registry@5.0.1/node_modules/ember-cli-preprocess-registry/preprocessors.js:156:26
    at Array.forEach (<anonymous>)
    at processPlugins (/Users/katie/dev/experiments/super-rentals-demo/node_modules/.pnpm/ember-cli-preprocess-registry@5.0.1/node_modules/ember-cli-preprocess-registry/preprocessors.js:154:11)
    at module.exports.preprocessTemplates (/Users/katie/dev/experiments/super-rentals-demo/node_modules/.pnpm/ember-cli-preprocess-registry@5.0.1/node_modules/ember-cli-preprocess-registry/preprocessors.js:137:10)
    at DefaultPackager.processTemplates (/Users/katie/dev/experiments/super-rentals-demo/node_modules/.pnpm/ember-cli@6.10.0_@types+node@25.0.10_ejs@3.1.10_handlebars@4.7.8_underscore@1.13.7/node_modules/ember-cli/lib/broccoli/default-packager.js:438:9)

Metadata

Metadata

Assignees

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