Skip to content

Can not set specific single entry outside the src #1091

Closed
@duduluu

Description

@duduluu

Version

3.0.0-beta.6

Reproduction link

https://github.com/HuijiFE/void-ui/tree/0.1

Steps to reproduce

git clone git@github.com:HuijiFE/void-ui.git
cd void-ui
git checkout 0.1
yarn
yarn serve
# or
yarn build:docs

What is expected?

Serve a entry that not in directory 'src'. (docs/main.ts)

What is actually happening?

log for serve command

 ERROR  Failed to compile with 1 errors                                                                                                                                                                                            17:24:55

This relative module was not found:

* ./src/main.ts in multi (webpack)-dev-server/client/index.js (webpack)/hot/dev-server.js ./src/main.ts
Type checking and linting in progress... 

log for build command

 ERROR  Failed to compile with 1 errors                                                                                                                                                                                            17:30:18

This relative module was not found:

* ./src/main.ts in multi ./src/main.ts

The problem occurs when there is no entry in the src.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions