-
-
Notifications
You must be signed in to change notification settings - Fork 910
Closed
Labels
BugSomething isn't working.Something isn't working.priority: UrgentIssue or feature request must be addressed ASAP.Issue or feature request must be addressed ASAP.
Description
Description
I have a brand new & largely empty package where I installed @stdlib/stdlib
(^0.3.0). To get started I wrote the following test in vitest
:
import * as s from "@stdlib/stdlib"
import { describe, expect, it } from "vitest"
describe("stdlib", () => {
it("loads the library", () => {
expect(s).toBeDefined()
})
})
Running the test generates this error:
Error: Cannot find module '@stdlib/lapack'
Require stack:
- [root]/node_modules/.pnpm/@[email protected]/node_modules/@stdlib/stdlib/lib/main.js
- [root]/node_modules/.pnpm/@[email protected]/node_modules/@stdlib/stdlib/lib/index.js
❯ Object.<anonymous> ../../node_modules/.pnpm/@[email protected]/node_modules/@stdlib/stdlib/lib/main.js:190:32
Indeed, lapack
is not installed at that location, nor is it in any other location in my project.
Note that I'm using pnpm
as my package manager. I'm not certain whether this is a significant issue or not. The command I used to install stdlib was very standard: pnpm add @stdlib/stdlib
.
Related Issues
Related issues # , # , and # .
Questions
No.
Demo
No response
Reproduction
- Create a new Node.js package
- `pnpm add @stdlib/stdlib`
- `import * as s from "@stdlib/stdlib"`
Expected Results
Node should not throw the error when loading `@stdlib/stdlib`. I expect `lapack` should be included via the dependencies.
Actual Results
Error: Cannot find module '@stdlib/lapack'
Require stack:
- [root]/node_modules/.pnpm/@[email protected]/node_modules/@stdlib/stdlib/lib/main.js
- [root]/node_modules/.pnpm/@[email protected]/node_modules/@stdlib/stdlib/lib/index.js
❯ Object.<anonymous> ../../node_modules/.pnpm/@[email protected]/node_modules/@stdlib/stdlib/lib/main.js:190:32
Version
0.3.0
Environments
Node.js
Browser Version
No response
Node.js / npm Version
20.16.0
Platform
No response
Checklist
- Read and understood the Code of Conduct.
- Searched for existing issues and pull requests.
Metadata
Metadata
Assignees
Labels
BugSomething isn't working.Something isn't working.priority: UrgentIssue or feature request must be addressed ASAP.Issue or feature request must be addressed ASAP.