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

[ember-data@3.22.0] Error on build: Imported DEPRECATE_NAJAX ... which is not a supported flag #7361

Closed
urbany opened this issue Oct 28, 2020 · 4 comments

Comments

@urbany
Copy link

urbany commented Oct 28, 2020

Hi everyone, after updating from fom previous stable to 3.22.0 I'm seeing this error when building:

Build Error (broccoli-persistent-filter:Babel > [Babel: @ember-data/adapter]) in @ember-data/adapter/rest.js

/my-project/@ember-data/adapter/rest.js: Imported DEPRECATE_NAJAX from @ember-data/private-build-infra/deprecations which is not a supported flag.

Also have latest stable ember-cli.

Thanks in advance

@urbany
Copy link
Author

urbany commented Oct 28, 2020

Found this similar bug #7221 (comment)

rm -rf node_modules && npm install solved the problem, you can close this issue if you think everything is fine

@rwjblue
Copy link
Member

rwjblue commented Oct 28, 2020

FWIW, this is due to caching with esm (which we are using to discover these feature and deprecation flags). We disabled that caching over in #7322, but I don't know if that has landed in 3.22.

@snewcomer - Do you recall?

@snewcomer
Copy link
Contributor

Hi all! There are two things that would still result in this error after bumping to 3.22 (esm cache is disabled)...

  1. If you update from a version that has the esm cache enabled, you will see this error.
  2. If you are updating from release (3.21 esm cache disabled) and never blew away your node_modules and subsequently upgraded to a release with a new flag, you will see this error.

Glad you got around the error.

@srsgores
Copy link

srsgores commented Nov 6, 2020

Running npm ci fixed this for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants