Cannot resolve symbols from 'admin-on-rest' package

WebStorm cannot resolve symbols imported from package 'admin-on-rest'. Example:

import { Datagrid } from 'admin-on-rest';

WebStorm 2019.1

'admin-on-rest' version 1.4.1

How can I reconfigure webStorm to make it see these imports?

0
2 comments

The IDE can't resolve modules from transpiled library.

To work out the issue, please modify node_modules/admin-on-rest/package.json by adding

"esnext": "src/index.js"

to it.

0
Avatar
Permanently deleted user

A perfect workaround. Thank You! Please let me know if a final solution is there.

0

Please sign in to leave a comment.