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

Import issues #8

Open
hahrens opened this issue Feb 2, 2025 · 0 comments · May be fixed by #9
Open

Import issues #8

hahrens opened this issue Feb 2, 2025 · 0 comments · May be fixed by #9

Comments

@hahrens
Copy link

hahrens commented Feb 2, 2025

I got errors when i try to import:

(doing import via import bs5dialog from "@ymlluo/bs5dialog/src/bs5dialog";)

Running webpack, these are the errors:

ERROR  Failed to compile with 10 errors                                                                                   

Module build failed: Module not found:
"./node_modules/@ymlluo/bs5dialog/src/components/alert.js" contains a reference to the file "bootstrap".
This file can not be found, please check it for typos or update it if the file got moved.

"./node_modules/@ymlluo/bs5dialog/src/components/load.js" contains a reference to the file "../utils".
This file can not be found, please check it for typos or update it if the file got moved.

"./node_modules/@ymlluo/bs5dialog/src/startup.js" contains a reference to the file "./components/load".
This file can not be found, please check it for typos or update it if the file got moved.

"./node_modules/@ymlluo/bs5dialog/src/startup.js" contains a reference to the file "./components/offcanvas".
This file can not be found, please check it for typos or update it if the file got moved.

"./node_modules/@ymlluo/bs5dialog/src/startup.js" contains a reference to the file "./components/alert".
This file can not be found, please check it for typos or update it if the file got moved.

"./node_modules/@ymlluo/bs5dialog/src/startup.js" contains a reference to the file "./components/confirm".
This file can not be found, please check it for typos or update it if the file got moved.

"./node_modules/@ymlluo/bs5dialog/src/startup.js" contains a reference to the file "./components/prompt".
This file can not be found, please check it for typos or update it if the file got moved.

"./node_modules/@ymlluo/bs5dialog/src/startup.js" contains a reference to the file "./components/message".
This file can not be found, please check it for typos or update it if the file got moved.

"./node_modules/@ymlluo/bs5dialog/src/startup.js" contains a reference to the file "./components/toast".
This file can not be found, please check it for typos or update it if the file got moved.

"./node_modules/@ymlluo/bs5dialog/src/startup.js" contains a reference to the file "./i18n".
This file can not be found, please check it for typos or update it if the file got moved.

I think my compiler is mad because if the import should "./utils" it handles that as a folder and tries to import "./utils/index.js" and it must be "./utils.js" so the compile knows that the file to import is named "utils.js".

I tried around in my code and wrote a ".js" behind every internal import which resolves my errors there. But after that my browser is also mad, because "bs5dialog" is not defined at "bs5dialog.js" row 35.

@hahrens hahrens linked a pull request Feb 2, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant