Bootstrap is not defined

Hello everybody,
I am having some trouble importing JavaScripts.

When i try to import Popper.js using this method:

import '@popperjs/core/dist/umd/popper.js'
import 'bootstrap';

I get this error:
Uncaught (in promise) ReferenceError: bootstrap is not defined

Everything works fine when is use CDN method:

<script src="" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>

Thanks in advance

It worked when i use this:

import * as bootstrap from ‘bootstrap’;

Do you think it’s the right solution ?