Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

can not build multi files package #118

Open
fishead opened this issue Apr 14, 2020 · 1 comment
Open

can not build multi files package #118

fishead opened this issue Apr 14, 2020 · 1 comment

Comments

@fishead
Copy link

fishead commented Apr 14, 2020

I got the error below in my personal project, then reproduced it in this repo. check my demo at fishead@ca9cfaa

I made some changes to the master branch of this repo, error occur after running

npm run build

the output is

> pika-pack build

Note: This CLI was recently deprecated. Update your build script to: pika build [flags]
@pika/pack v0.5.0
[1/5] Validating source...
[2/5] Preparing pipeline...
      ❇️  pkg/
[3/5] Running @pika/plugin-ts-standard-pkg...
      📝  pkg/dist-src/index.js [esnext]
      📝  pkg/dist-types/index.d.ts [types]
      » Linting with standard-pkg...
[4/5] Running @pika/plugin-build-node...

lerna ERR! npm run build stderr:
Error: Could not resolve './add' from pkg/dist-src/index.js

Do I missing something or pika can not work with multi files package?

@unordinarity
Copy link

I had same issue, but for me it's caused by using module with '/index.ts' entrypoint. I made a repo with samples and some inferences

https://github.com/unordinarity/pika-plugin-ts-standard-pkg-bug-sample

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants