Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): override ember-inflector to use auto-import v2 #2834

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

Yelinz
Copy link
Member

@Yelinz Yelinz commented Nov 1, 2024

Removed any inflector v4 which causes webpack errors

error which happens without this change

ERROR in ../../../../../../tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/app.cjs 49:138-186
Module not found: Error: Can't resolve 'ember-inflector/lib/helpers/pluralize' in '/tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack'
resolve 'ember-inflector/lib/helpers/pluralize' in '/tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack'
  Parsed request is a module
  No description file found in /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack or above
  resolve as module
    looking for modules in /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules
      existing directory /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules/ember-inflector
        using description file: /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules/ember-inflector/package.json (relative path: .)
          using exports field: ./dist/lib/helpers/pluralize.js
            using description file: /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules/ember-inflector/package.json (relative path: ./dist/lib/helpers/pluralize.js)
              no extension
                Field 'browser' doesn't contain a valid alias configuration
                /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules/ember-inflector/dist/lib/helpers/pluralize.js doesn't exist
              .js
                Field 'browser' doesn't contain a valid alias configuration
                /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules/ember-inflector/dist/lib/helpers/pluralize.js.js doesn't exist
              .ts
                Field 'browser' doesn't contain a valid alias configuration
                /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules/ember-inflector/dist/lib/helpers/pluralize.js.ts doesn't exist
              .json
                Field 'browser' doesn't contain a valid alias configuration
                /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules/ember-inflector/dist/lib/helpers/pluralize.js.json doesn't exist
              as directory
                /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules/ember-inflector/dist/lib/helpers/pluralize.js doesn't exist
    /tmp/broccoli-3721228nXjKmAAamc27/node_modules doesn't exist or is not a directory
    /tmp/node_modules doesn't exist or is not a directory
    /node_modules doesn't exist or is not a directory

ERROR in ../../../../../../tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/app.cjs 50:142-192
Module not found: Error: Can't resolve 'ember-inflector/lib/helpers/singularize' in '/tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack'
resolve 'ember-inflector/lib/helpers/singularize' in '/tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack'
  Parsed request is a module
  No description file found in /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack or above
  resolve as module
    looking for modules in /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules
      existing directory /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules/ember-inflector
        using description file: /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules/ember-inflector/package.json (relative path: .)
          using exports field: ./dist/lib/helpers/singularize.js
            using description file: /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules/ember-inflector/package.json (relative path: ./dist/lib/helpers/singularize.js)
              no extension
                Field 'browser' doesn't contain a valid alias configuration
                /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules/ember-inflector/dist/lib/helpers/singularize.js doesn't exist
              .js
                Field 'browser' doesn't contain a valid alias configuration
                /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules/ember-inflector/dist/lib/helpers/singularize.js.js doesn't exist
              .ts
                Field 'browser' doesn't contain a valid alias configuration
                /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules/ember-inflector/dist/lib/helpers/singularize.js.ts doesn't exist
              .json
                Field 'browser' doesn't contain a valid alias configuration
                /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules/ember-inflector/dist/lib/helpers/singularize.js.json doesn't exist
              as directory
                /tmp/broccoli-3721228nXjKmAAamc27/cache-1115-webpack_bundler_ember_auto_import_webpack/node_modules/ember-inflector/dist/lib/helpers/singularize.js doesn't exist
    /tmp/broccoli-3721228nXjKmAAamc27/node_modules doesn't exist or is not a directory
    /tmp/node_modules doesn't exist or is not a directory
    /node_modules doesn't exist or is not a directory

Build Error (WebpackBundler)

webpack returned errors to ember-auto-import


Stack Trace and Error Report: /tmp/error.dump.6c97f08608042518188b02c3e30d4196.log

@Yelinz Yelinz requested a review from derrabauke November 1, 2024 08:20
@Yelinz Yelinz self-assigned this Nov 1, 2024
@Yelinz Yelinz merged commit fcfdede into projectcaluma:main Nov 4, 2024
50 checks passed
@Yelinz Yelinz deleted the fix-inflector branch November 4, 2024 10:09
@anehx
Copy link
Contributor

anehx commented Nov 14, 2024

🎉 This PR is included in version 13.1.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@anehx anehx added the released label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants