-
Notifications
You must be signed in to change notification settings - Fork 119
Description
System Info
System:
OS: macOS 15.3.1
CPU: (12) arm64 Apple M2 Max
Memory: 1.19 GB / 64.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.15.0 - ~/.nvm/versions/node/v22.15.0/bin/node
npm: 10.9.2 - ~/.nvm/versions/node/v22.15.0/bin/npm
pnpm: 10.10.0 - ~/.nvm/versions/node/v22.15.0/bin/pnpm
Details
Following CONTRIBUTING.md, in a fresh pnpm i, pnpm build and then pnpm test, hit
λ pnpm test
> lynx-stack@0.0.0 test /Users/bytedance/github/lynx-stack
> vitest
✘ [ERROR] Could not resolve "./dist/vitest.config"
packages/react/testing-library/vitest.config.ts:2:35:
2 │ import { createVitestConfig } from './dist/vitest.config';
╵ ~~~~~~~~~~~~~~~~~~~~~~
failed to load config from /Users/bytedance/github/lynx-stack/packages/react/testing-library/vitest.config.ts
failed to load config from /Users/bytedance/github/lynx-stack/packages/testing-library/examples/basic/vitest.config.ts
5:50:29 PM [vite] warning: @rollup/plugin-typescript TS5110: Option 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
5:50:30 PM [vite] warning: @rollup/plugin-typescript TS5110: Option 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
This is not going to be a good experience for new starter.
I also tried:
lynx-stack/packages/react/testing-library git/main
λ pnpm run build
> @lynx-js/reactlynx-testing-library@0.0.0 build /Users/bytedance/github/lynx-stack/packages/react/testing-library
> rslib build
Rslib v0.6.8
error Build errors:
File: /Users/bytedance/github/lynx-stack/packages/react/testing-library/src/env/vitest.ts:1:1
× Module not found: Can't resolve '@lynx-js/testing-environment/env/vitest' in '/Users/bytedance/github/lynx-stack/packages/react/testing-library/src/env'
╭─[1:16]
1 │ import env from '@lynx-js/testing-environment/env/vitest';
· ─────────────────────────────────────────
2 │ export default env;
Reproduce link
No response
Reproduce Steps
See details
Reactions are currently unavailable