He importado un módulo a mi proyecto. Al ejecutarlo por separado funciona bien. Tan pronto como quiero usarlo en el navegador, causa problemas.
Uncaught TypeError: Failed to resolve module specifier "theblockchainapi". Relative references must start with either "/", "./", or "../".
Así es como se ve mi importación:
<script type="module" src="./app.js"></script>
app.js comienza con:
import theblockchainapi from 'theblockchainapi';
Cambiar de:
import theblockchainapi from 'theblockchainapi';a:
const theblockchainapi = require('theblockchainapi');