mercredi 2 juin 2021

I am getting the following error while trying to run ./watch

I changed to a new machine and from Visual Studio 2017 to Visual Studio 2019 I started getting the following errors when I was running watch command as below, which I used to do from the beginning

PS C:\GitSrsCodes\IMS\IMS.Ember> ./watch
ERROR in ./app/application/ApplicationController.js 5:0-42 Module not found: Error: Can’t resolve ‘constants’ in ‘C:\GitSrsCodes\IMS\IMS.Ember\app\application’

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to: - add a fallback ‘resolve.fallback: { “constants”: require.resolve(“constants-browserify”) }’ - install ‘constants-browserify’ If you don’t want to include a polyfill, you can use an empty module like this: resolve.fallback: { “constants”: false } @ ./.webpack/webpack-results.js 3:46-97 @ ./.webpack/webpack-app.js 1:0-30

ERROR in ./app/components/tuts-tests/tuts-tests.js 5:0-30 Module not found: Error: Can’t resolve ‘os’ in ‘C:\GitSrsCodes\IMS\IMS.Ember\app\components\tuts-tests’

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to: - add a fallback ‘resolve.fallback: { “os”: require.resolve(“os-browserify/browser”) }’ - install ‘os-browserify’ If you don’t want to include a polyfill, you can use an empty module like this: resolve.fallback: { “os”: false } @ ./.webpack/webpack-results.js 3:9632-9682 @ ./.webpack/webpack-app.js 1:0-30

ERROR in ./node_modules/ember-source/dist/ember.debug.js 6498:16-37 Module not found: Error: Can’t resolve ‘url’ in ‘C:\GitSrsCodes\IMS\IMS.Ember\node_modules\ember-source\dist’

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it.

If you want to include a polyfill, you need to: - add a fallback ‘resolve.fallback: { “url”: require.resolve(“url/”) }’ - install ‘url’ If you don’t want to include a polyfill, you can use an empty module like this: resolve.fallback: { “url”: false } @ ./.webpack/webpack-entry-dev.js 5:0-39

3 errors have detailed information that is not shown.    
    3 errors have detailed information that is not shown.
    Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
    
And I am getting webpack 5.38.1 compiled with 3 errors and 3 warnings in 23239 ms

Any help please if possible?




Aucun commentaire:

Enregistrer un commentaire