Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No "exports" main defined on build or watch #187

Open
Porshe opened this issue Sep 15, 2022 · 0 comments
Open

No "exports" main defined on build or watch #187

Porshe opened this issue Sep 15, 2022 · 0 comments

Comments

@Porshe
Copy link

Porshe commented Sep 15, 2022

Error on try build or watch.

mobile-web % yarn build
yarn build
yarn run v1.22.19
warning package.json: No license field
$ rollup -c

./src/viewer.js → ./dist/viewer.js...
[!] (plugin babel) Error: No "exports" main defined in /Users/aks/Downloads/amp-viewer-main/mobile-web/node_modules/@babel/helper-compilation-targets/package.json
src/viewer.js
Error [PLUGIN_ERROR]: No "exports" main defined in /Users/aks/Downloads/amp-viewer-main/mobile-web/node_modules/@babel/helper-compilation-targets/package.json
at new NodeError (node:internal/errors:388:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:440:9)
at packageExportsResolve (node:internal/modules/esm/resolve:719:3)
at resolveExports (node:internal/modules/cjs/loader:488:36)
at Module._findPath (node:internal/modules/cjs/loader:528:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:932:27)
at Module._load (node:internal/modules/cjs/loader:787:27)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/Users/aks/Downloads/amp-viewer-main/mobile-web/node_modules/@babel/preset-env/lib/debug.js:8:33)

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

node: v18.4.0

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

No branches or pull requests

1 participant