nx icon indicating copy to clipboard operation
nx copied to clipboard

Option "isolatedConfig" is deprecated:

Open ojemuyiwa opened this issue 1 year ago โ€ข 64 comments

Documentation issue

  • [ ] Reporting a typo
  • [ ] Reporting a documentation bug
  • [ ] Documentation improvement
  • [ ] Documentation feedback

Is there a specific documentation page you are reporting?

Enter the URL or documentation section here.

Additional context or description

WARNING: Option "isolatedConfig" is deprecated: Automatic configuration of Webpack is deprecated in favor of an explicit 'webpack.config.js' file. This option will be removed in Nx 18. See https://nx.dev/recipes/webpack/webpack-config-setup.

but isolatedConfig has been removed from my package.json and warning still shows?

"options": {
        "compiler": "babel",
        "outputPath": "dist/ui/browser",
        "index": "src/index.html",
        "baseHref": "/ui/",
        "main": "src/main.tsx",
        "tsConfig": "tsconfig.app.json",
        "assets": ["src/favicon.ico", "src/assets"],
        "styles": ["src/styles.css"],
        "scripts": [],
        "webpackConfig": "./webpack.config.js"
      },

ojemuyiwa avatar Dec 13 '23 10:12 ojemuyiwa

Which version of Nx are you on? Can you run nx report and paste the info here?

jaysoo avatar Dec 13 '23 13:12 jaysoo

Which version of Nx are you on? Can you run nx report and paste the info here?

17.2.0

ojemuyiwa avatar Dec 13 '23 14:12 ojemuyiwa

can you try the latest patch 17.2.4?

jaysoo avatar Dec 13 '23 16:12 jaysoo

can you try the latest patch 17.2.4?

Ok will do on the morrow, cheers

ojemuyiwa avatar Dec 13 '23 18:12 ojemuyiwa

17.2.4

17.2.3 is latest and new migration caused even more issues Screenshot 2023-12-14 at 10 00 54

ojemuyiwa avatar Dec 14 '23 10:12 ojemuyiwa

used 17.2.4 explicitly and still broken, no liveReload on SSR so i guess I'll remove it and give feedback. Screenshot 2023-12-14 at 10 04 12

ojemuyiwa avatar Dec 14 '23 10:12 ojemuyiwa

Can you provide a small reproduction for this issue? It will help with the investigation.

jaysoo avatar Dec 14 '23 13:12 jaysoo

Can you provide a small reproduction for this issue? It will help with the investigation.

image

I'm seeing the same in this project - maybe that helps to debug it?

 >  NX   Report complete - copy this into the issue template

   Node   : 20.9.0
   OS     : darwin-arm64
   pnpm   : 8.9.2
   
   nx                 : 17.2.8
   @nx/js             : 17.2.8
   @nx/jest           : 17.2.8
   @nx/linter         : 17.2.8
   @nx/eslint         : 17.2.8
   @nx/workspace      : 17.2.8
   @nx/cypress        : 17.2.8
   @nx/devkit         : 17.2.8
   @nx/eslint-plugin  : 17.2.8
   @nx/nest           : 17.2.8
   @nx/node           : 17.2.8
   @nx/plugin         : 17.2.8
   @nx/react          : 17.2.8
   @nx/rollup         : 17.2.8
   @nrwl/tao          : 17.2.8
   @nx/web            : 17.2.8
   @nx/webpack        : 17.2.8
   typescript         : 5.3.3
   ---------------------------------------
   Community plugins:
   @pubkey-ui/generators            : 1.1.0
   @solana-developers/preset-anchor : 2.0.0
   ---------------------------------------
   Local workspace plugins:
         @pubkey-stack/tools

beeman avatar Jan 04 '24 08:01 beeman

but isolatedConfig has been removed from my package.json and warning still shows?

I think I had a similar issue migrating from a 14.8.3 to 17.2.8 forcing to use isolatedConfig in project.json (not package.json) which seems to be fixed by https://github.com/nrwl/nx/issues/20671#issuecomment-1848396559 (not sure why I have to add that webpack.config.js manually though)

gRoussac avatar Jan 06 '24 15:01 gRoussac

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐Ÿ™

github-actions[bot] avatar Jan 21 '24 00:01 github-actions[bot]

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐Ÿ™

reply

beeman avatar Jan 21 '24 01:01 beeman

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐Ÿ™

github-actions[bot] avatar Feb 06 '24 00:02 github-actions[bot]

The message still appears in this project

I'm seeing the same in this project - maybe that helps to debug it?

beeman avatar Feb 06 '24 00:02 beeman

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐Ÿ™

github-actions[bot] avatar Feb 21 '24 00:02 github-actions[bot]

I'm getting this warning today while upgrading to NX 18. Simply removing the line from project.json seems to work, but I'm not sure if that will come back to bite me later.

alextegelid avatar Feb 27 '24 07:02 alextegelid

Simply removing the line from project.json seems to work, but I'm not sure if that will come back to bite me later.

Same, I didn't manually remove it as I hope a migration will do it 'right'.

beeman avatar Feb 27 '24 14:02 beeman

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐Ÿ™

github-actions[bot] avatar Mar 13 '24 00:03 github-actions[bot]

reply ๐Ÿ™Œ

beeman avatar Mar 13 '24 00:03 beeman

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐Ÿ™

github-actions[bot] avatar Mar 28 '24 00:03 github-actions[bot]

reply

beeman avatar Mar 28 '24 01:03 beeman

We're getting this warning as well. We're currently on nx 17.3.2

konekoya avatar Apr 08 '24 09:04 konekoya

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐Ÿ™

github-actions[bot] avatar Apr 23 '24 00:04 github-actions[bot]

Still happening. ๐Ÿฅฒ

Would have hoped to see a migration to fix this... Repro linked in my post from early January

beeman avatar Apr 23 '24 09:04 beeman

This issue has been automatically marked as stale because more information has not been provided within 7 days. It will be closed in 21 days if no information is provided. If information has been provided, please reply to keep it active. Thanks for being a part of the Nx community! ๐Ÿ™

github-actions[bot] avatar May 09 '24 00:05 github-actions[bot]

๐Ÿ™

beeman avatar May 09 '24 00:05 beeman

This issue has been automatically marked as stale because more information has not been provided within 7 days. It will be closed in 21 days if no information is provided. If information has been provided, please reply to keep it active. Thanks for being a part of the Nx community! ๐Ÿ™

github-actions[bot] avatar May 17 '24 00:05 github-actions[bot]

It will be closed in 21 days if no information is provided.

Working repro here: https://github.com/nrwl/nx/issues/20738#issuecomment-1876727389

beeman avatar May 17 '24 08:05 beeman

This issue has been automatically marked as stale because more information has not been provided within 7 days. It will be closed in 21 days if no information is provided. If information has been provided, please reply to keep it active. Thanks for being a part of the Nx community! ๐Ÿ™

github-actions[bot] avatar May 26 '24 00:05 github-actions[bot]

getting this too on my project

boltex avatar Jun 05 '24 18:06 boltex

This issue has been automatically marked as stale because more information has not been provided within 7 days. It will be closed in 21 days if no information is provided. If information has been provided, please reply to keep it active. Thanks for being a part of the Nx community! ๐Ÿ™

github-actions[bot] avatar Jun 13 '24 00:06 github-actions[bot]