cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

When reporting "cannot import from directory", the relevant script path is not printed directly.

Open smallmain opened this issue 8 months ago • 0 comments

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

smallmain avatar Jun 25 '24 01:06 smallmain