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

Error after using yarn webpack, with alias configurations #2

Open
pacman2108 opened this issue Apr 17, 2023 · 0 comments
Open

Error after using yarn webpack, with alias configurations #2

pacman2108 opened this issue Apr 17, 2023 · 0 comments

Comments

@pacman2108
Copy link

PS C:\Users\user\AppData\Local\Temp\MicrosoftEdgeDownloads\fa39134e-386f-4192-8376-527df42a551c\WinRTElectron-master\packages\microsoft.bing> yarn webpack
yarn run v1.22.19
$ C:\Users\user\AppData\Local\Temp\MicrosoftEdgeDownloads\fa39134e-386f-4192-8376-527df42a551c\WinRTElectron-master\node_modules\.bin\webpack
CLI for webpack must be installed.
  webpack-cli (https://github.com/webpack/webpack-cli)

We will use "yarn" to install the CLI via "yarn add -D webpack-cli".
Do you want to install 'webpack-cli' (yes/no): yes
Installing 'webpack-cli' (running 'yarn add -D webpack-cli')...
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 21 new dependencies.
info Direct dependencies
└─ webpack-cli@5.0.1
info All dependencies
├─ @discoveryjs/json-ext@0.5.7
├─ @webpack-cli/configtest@2.0.1
├─ @webpack-cli/info@2.0.1
├─ @webpack-cli/serve@2.0.1
├─ clone-deep@4.0.1
├─ colorette@2.0.20
├─ envinfo@7.8.1
├─ fastest-levenshtein@1.0.16
├─ import-local@3.1.0
├─ interpret@3.1.1
├─ is-plain-object@2.0.4
├─ isobject@3.0.1
├─ path-exists@4.0.0
├─ pkg-dir@4.2.0
├─ rechoir@0.8.0
├─ resolve-cwd@3.0.0
├─ resolve-from@5.0.0
├─ shallow-clone@3.0.1
├─ webpack-cli@5.0.1
├─ webpack-merge@5.8.0
└─ wildcard@2.0.0
assets by status 0 bytes [cached] 1 asset

WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value.
Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/

ERROR in main
Module not found: Error: Can't resolve './src' in 'C:\Users\user\AppData\Local\Temp\MicrosoftEdgeDownloads\fa39134e-386f-4192-8376-527df42a551c\WinRTElectron-master'
resolve './src' in 'C:\Users\user\AppData\Local\Temp\MicrosoftEdgeDownloads\fa39134e-386f-4192-8376-527df42a551c\WinRTElectron-master'
  using description file: C:\Users\user\AppData\Local\Temp\MicrosoftEdgeDownloads\fa39134e-386f-4192-8376-527df42a551c\WinRTElectron-master\package.json (relative path: .)
    Field 'browser' doesn't contain a valid alias configuration
    using description file: C:\Users\user\AppData\Local\Temp\MicrosoftEdgeDownloads\fa39134e-386f-4192-8376-527df42a551c\WinRTElectron-master\package.json (relative path: ./src)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
        C:\Users\user\AppData\Local\Temp\MicrosoftEdgeDownloads\fa39134e-386f-4192-8376-527df42a551c\WinRTElectron-master\src doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
        C:\Users\user\AppData\Local\Temp\MicrosoftEdgeDownloads\fa39134e-386f-4192-8376-527df42a551c\WinRTElectron-master\src.js doesn't exist
      .json
        Field 'browser' doesn't contain a valid alias configuration
        C:\Users\user\AppData\Local\Temp\MicrosoftEdgeDownloads\fa39134e-386f-4192-8376-527df42a551c\WinRTElectron-master\src.json doesn't exist
      .wasm
        Field 'browser' doesn't contain a valid alias configuration
        C:\Users\user\AppData\Local\Temp\MicrosoftEdgeDownloads\fa39134e-386f-4192-8376-527df42a551c\WinRTElectron-master\src.wasm doesn't exist
      as directory
        C:\Users\user\AppData\Local\Temp\MicrosoftEdgeDownloads\fa39134e-386f-4192-8376-527df42a551c\WinRTElectron-master\src doesn't exist

webpack 5.79.0 compiled with 1 error and 1 warning in 937 ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
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

1 participant