Modeler.js not found

Hi, I’m a newby.
I’d need to customize the library, so I’m following the walkthrough instructions as specified in paragraph Roll Your Own Modeler → Include the Library.
I run
npm install bpmn-js
and then I add the Modeler into launch_modeler.html:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script type="module">
    import Modeler from './bpmn-js/lib/Modeler';

    </script>
</body>
</html>

When I load launch_modeler.html I get the following error in the console

launch_modeler.html:9 GET http://localhost:63342/node_modules/bpmn-js/lib/Modeler net::ERR_ABORTED 404 (Not Found)

It does not find Modeler.js.
What is missing?
Thank you for any help you can provide.

Hi martinaG,

Could you update your import statement to

import Modeler from 'bpmn-js/lib/Modeler'

and see if it works then?

Hi, thank you for your answer.
I get a different error:
Uncaught TypeError: Failed to resolve module specifier "bpmn-js/lib/Modeler". Relative references must start with either "/", "./", or "../".

Can you please share your full setup? That would really help to understand your issue.

In BPMN-js/, I run
npm install bpmn-js
and get the following terminal output

npm WARN saveError ENOENT: no such file or directory, open '/Users/marta/work/PycharmProjects/BPMN-js/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/marta/work/PycharmProjects/BPMN-js/package.json'
npm WARN BPMN-js No description
npm WARN BPMN-js No repository field.
npm WARN BPMN-js No README data
npm WARN BPMN-js No license field.
+ bpmn-js@8.2.1
added 21 packages from 11 contributors and audited 21 packages in 4.516s0
found 0 vulnerabilities

then I
cd node_modules/
and create launch_modeler.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script type="module">
    import Modeler from './bpmn-js/lib/Modeler';
    </script>
</body>
</html>

I suspect I’m missing some basic step