Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

162
Vistas
Rollup [name] is not exported from [package] - using monorepo

I have index file in my monorepo package which exports everything from the package by using:

export * from './api'
export * from './store'

Then in another package I want to use the api, so I import it by using:

import {Api} from "@project/shared";

The production rollup build fails, saying that Api is not exported from '../dist/index.js'. But it is actually exported because I can use it in other monorepo packages. What i've tried is to use exports: named option, but it didn't help. Also I've read a lot of info about monorepos with lerna and rollup but I can't find why the build fails. Also in my rollup config I am using resolve and commonjs rollup modules.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda