Skip to content

Can't resolve './dataview.js' error importing @stdlib/stats #1072

@alexebl

Description

@alexebl

Description

I have an angular project where I want to use @stdlib/stats library
I have installed the library via npm:
npm install @stdlib/stats
and then included it within one component using import statement
import {dists} from '@stdlib/stats/base';

when I trying to compile project I'm getting this error:

./main.js:24:21-45 - Error: Module not found: Error: Can't resolve './dataview.js' in '\node_modules@stdlib\assert\has-arraybuffer-support\lib'

lokking in node_modules path, I could not find dataview.js either, so it seems that something changed in sources and needs to be adapted

Related Issues

No response

Questions

No response

Demo

No response

Reproduction

Create an angular projects
npm install @stdlib/stats

add
import {dists} from '@stdlib/stats/base';

Expected Results

compiles

Actual Results

compiles with error

Version

"@stdlib/stats": "^0.0.13",

Environments

Chrome

Browser Version

No response

Node.js / npm Version

No response

Platform

Windows

Checklist

  • Read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions