cocos-engine
cocos-engine copied to clipboard
When reporting "cannot import from directory", the relevant script path is not printed directly.
Cocos Creator version
3.8.2
System information
MacOS
Issue description
RT.
For all script system errors, especially import errors, can the relevant script path be returned? Otherwise, it is very difficult to find the script where the error occurred, especially if the editor code is not open source and there is no way to break the point.
eg:
has-error.ts:
import { a } from ".. /extensions/xxx/dir";
error:
xxx error, file: assets/has-error.ts
If the script does not have a real path, you should return to the path of the temporary product in the library or print the script content directly, so that you can better find the original path.
Relevant error log output
No response
Steps to reproduce
.
Minimal reproduction project
No response