Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.

Fails at build stage #12

Open
lightningorb opened this issue Jun 22, 2022 · 1 comment
Open

Fails at build stage #12

lightningorb opened this issue Jun 22, 2022 · 1 comment

Comments

@lightningorb
Copy link

~/dev/____/____ (main) $ npm run build

> [email protected] build
> sapper build --legacy

> Building...

┌──────────────┐
│ built client │
└──────────────┘
   3.52 kB Breadcrumb.a1efb46c.js
           │ src/components/Posts.svelte (62.8%)
           └ src/components/Breadcrumb.svelte (37.2%)
   4.28 kB index.ba28a094.js
           └ node_modules/svelte/internal/index.mjs
   2.29 kB contact.1b052d76.js
           └ src/routes/contact.svelte
   1.72 kB index.83cfe200.js
           └ src/routes/index.svelte
   3.91 kB about.f17b9876.js
           └ src/routes/about.svelte
   1.27 kB [page([0-9]+)].c2cdce4e.js
           └ src/routes/[page([0-9]+)].svelte
   2.52 kB [slug].44731237.js
           │ src/routes/apps/[slug].svelte (79.5%)
           │ node_modules/reading-time/lib/reading-time.js (19.9%)
           └ node_modules/reading-time/index.js (0.6%)
   13.9 kB client.299cc58d.js
           │ src/node_modules/@sapper/app.mjs (36.4%)
           │ src/node_modules/@sapper/internal/App.svelte (22.2%)
           │ src/routes/_error.svelte (10.3%)
           │ src/components/Nav.svelte (9.9%)
           │ src/routes/_layout.svelte (8.7%)
           │ node_modules/svelte/store/index.mjs (5.0%)
           │ src/node_modules/@sapper/internal/manifest-client.mjs (3.9%)
           │ src/components/Footer.svelte (3.2%)
           │ src/client.js (0.2%)
           └ src/node_modules/@sapper/internal/shared.mjs (0.2%)
> No "exports" main defined in /Users/____/dev/____/____/node_modules/@babel/helper-compilation-targets/package.json
Error [PLUGIN_ERROR]: No "exports" main defined in /Users/____/dev/____/____/node_modules/@babel/helper-compilation-targets/package.json
    at new NodeError (node:internal/errors:371:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:440:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:692:3)
    at resolveExports (node:internal/modules/cjs/loader:482:36)
    at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/____/dev/____/____/node_modules/@babel/preset-env/lib/debug.js:8:33)
~/dev/____/____ (main) $
@thomcrowe
Copy link

Did you ever get a fix for this @bc31164b-cfd5-4a63-8144-875100622b2d? I ran into the same error when I tried to push to production. It works when I do yarn dev but when I run yarn run build I get this error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants