shellscape / webpack-manifest-plugin

webpack plugin for generating asset manifests
MIT License
1.43k stars 186 forks source link

Module not found: Error: Can't resolve.... #288

Closed elubin closed 2 years ago

elubin commented 2 years ago

I am running the plugin against a hello world project. My main.ts contains 2 imports that return this error when running 'npx wp'. The app runs local and those imports are resolved. Do I need to tell the plugin a path? The app directory is definitely in the src directory.

main.ts

import { AppModule } from './app/app.module';
import { environment } from './environments/environment';

error

ERROR in ./src/main.ts
  Module not found: Error: Can't resolve './app/app.module' in 'C:\src\micro-dashboard\src'
   @ ./src/main.ts 4:0-45 11:41-50
   @ multi ./src/main.ts

  ERROR in ./src/main.ts
  Module not found: Error: Can't resolve './environments/environment' in 'C:\src\micro-dashboard\src'
   @ ./src/main.ts 5:0-57 7:4-15
   @ multi ./src/main.ts
shellscape commented 2 years ago

🚨 Your issue will be CLOSED if: