Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Stackblitz import error #920

Open
anzuj opened this issue Mar 19, 2024 · 0 comments
Open

[Bug]: Stackblitz import error #920

anzuj opened this issue Mar 19, 2024 · 0 comments
Labels

Comments

@anzuj
Copy link

anzuj commented Mar 19, 2024

Describe the bug

In Stackblitz environment, after importing an icon, one of the below errors is prompted:

"The entrypoint for 'https:' could not successfully be resolved. The file '/turbo_modules/react-icons@5.0.1/hi2/index.mjs' does not exist. Please log an issue with the package author or check for an updated version of the package."

or

"Import error, can't find file:
../lib/index.mjs"

I'm not sure which modifications I need to carry out to use react-icons in Stackblitz, any advice would be appreciated!

Expected behavior

Icon gets imported and displayed without errors

Minimal sample repository URL

https://stackblitz.com/edit/react-h7tu7p?file=src%2FApp.js

Steps To Reproduce

Run the environment. The icon is imported at App.js

import React, { useState } from 'react';
import { HiChevronUpDown } from 'react-icons/hi2';

export default function App() {
  return (
    <div className="">
      <HiChevronUpDown />
    </div>
  );
}

Package version

v5.0.1

Relevant log output

No response

Additional context

No response

@anzuj anzuj added the Bug label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant