Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

403
Views
What is the cause and fix for this error?

I am using interact.js and when importing into js after doing "$ npm install --save interactjs" I get this error when rendering my code:

Uncaught TypeError: Failed to resolve module specifier "interactjs". Relative references must start with either "/", "./", or "../".

My import statement in my js file is --> import interact from 'interactjs';

This is my html: (for reasons I can't use the CDN I have commented out)

<!DOCTYPE html>
<html>
<head>
    <title>test</title>
    <!-- <script src="https://cdn.jsdelivr.net/npm/interactjs/dist/interact.min.js"></script> -->
    <script type="module" src="./script.js"></script>
    <link rel="stylesheet" href="styles.css">
</head>
<body id="body">

    <div id="window" class="resize-drag w-size w-position"></div>
    <div class="container">
        <div class="ribbon"></div>
        <div class="content">
            <div class="content-body">
                <div id="canvas" class="canvas"></div>
                <div id="bottom" class="a-bottom">
                    <div id="d-bottom" class="dropzone resizable-bottom"></div>
                </div>
            </div>
            <div id="left" class="a-left">
                <div id="d-left" class="dropzone resizable-left"></div>
            </div>
            <div id="right" class="a-right">
                <div id="d-right" class="dropzone resizable-right"></div>
            </div>
        </div>
    </div>

</body>
</html>```
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!