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

Error: error:0308010C:digital envelope routines::unsupported #219

Closed
glauberfc opened this issue Nov 4, 2022 · 13 comments
Closed

Error: error:0308010C:digital envelope routines::unsupported #219

glauberfc opened this issue Nov 4, 2022 · 13 comments

Comments

@glauberfc
Copy link

I'm using Node v18.12.0 (today it's the latest version) and getting the errors below:

yarn run v1.22.19
$ cd apps/next && yarn next
$ /Users/glauber/Dev/alpha-app/node_modules/.bin/next
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
warn  - Invalid next.config.js options detected: 
  - The root value has an unexpected property, webpackDevMiddleware, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, future, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).
  - The root value has an unexpected property, configOrigin, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, future, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).
  - The root value has an unexpected property, target, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, future, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).
  - The root value has an unexpected property, webpack5, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, future, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).
  - The value at .amp.canonicalBase must be 1 character or more but it was 0 characters.
  - The value at .assetPrefix must be 1 character or more but it was 0 characters.
  - The value at .i18n must be an object but it was null.

See more info here: https://nextjs.org/docs/messages/invalid-next-config
warn  - You have enabled experimental features (forceSwcTransforms, swcPlugins) in next.config.js.
warn  - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.

info  - automatically enabled Fast Refresh for 1 custom loader
error - ./pages/_app.tsx
Error: error:0308010C:digital envelope routines::unsupported
    at Generator.next (<anonymous>)
    at new Promise (<anonymous>)
wait  - compiling...
error - ./pages/_app.tsx
Error: error:0308010C:digital envelope routines::unsupported
    at Generator.next (<anonymous>)
    at new Promise (<anonymous>)

The error is the same as seen in #177, but the mentioned solution didn't work as I am using the latest Node version.

@nandorojo
Copy link
Owner

sounds like a next issue?

@himyjan
Copy link

himyjan commented Nov 4, 2022

#219 (comment)
https://github.com/himyjan/Solito2-Next13-Expo47
failed to run after update all package version to latest in solito-blank example project
using "solito": "^2.0.0-canary.2" "next": "^13.0.2" "react-native": "^0.70.4"
node.js: 'v19.0.1'

working after remove setting in next.config.js

forceSwcTransforms: true,

image

# web url opened log
~/Desktop/Solito2 main* 1m 27s
❯ yarn
yarn install v1.22.19
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > next-app > @expo/next-adapter@4.0.13" has incorrect peer dependency "next@^11".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > next-app > @expo/next-adapter@4.0.13" has unmet peer dependency "react@^17".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > next-app > @expo/next-adapter@4.0.13" has unmet peer dependency "react-native-web@^0.17.0".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > next-app > next@13.0.2" has unmet peer dependency "react@^18.2.0".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > next-app > next@13.0.2" has unmet peer dependency "react-dom@^18.2.0".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > next-app > next-fonts@1.5.1" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > next-app > next-images@1.8.4" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > app > @react-navigation/native@6.0.13" has unmet peer dependency "react@*".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > app > @react-navigation/native@6.0.13" has unmet peer dependency "react-native@*".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > app > @react-navigation/native-stack@6.9.1" has unmet peer dependency "react@*".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > app > @react-navigation/native-stack@6.9.1" has unmet peer dependency "react-native@*".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > app > @react-navigation/native-stack@6.9.1" has unmet peer dependency "react-native-safe-area-context@>= 3.0.0".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > app > @react-navigation/native-stack@6.9.1" has unmet peer dependency "react-native-screens@>= 3.0.0".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > next-app > next > styled-jsx@5.1.0" has unmet peer dependency "react@>= 16.8.0 || 17.x.x || ^18.0.0-0".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > next-app > next > use-sync-external-store@1.2.0" has unmet peer dependency "react@^16.8.0 || ^17.0.0 || ^18.0.0".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > next-app > next-fonts > file-loader@6.2.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > next-app > next-fonts > url-loader@4.1.1" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > app > @react-navigation/native > @react-navigation/core@6.4.0" has unmet peer dependency "react@*".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > app > @react-navigation/native-stack > @react-navigation/elements@1.3.6" has unmet peer dependency "react@*".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > app > @react-navigation/native-stack > @react-navigation/elements@1.3.6" has unmet peer dependency "react-native@*".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > app > @react-navigation/native-stack > @react-navigation/elements@1.3.6" has unmet peer dependency "react-native-safe-area-context@>= 3.0.0".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > app > expo-linking > expo-constants@13.2.3" has unmet peer dependency "expo@*".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > next-app > @expo/next-adapter > @expo/webpack-config > expo-pwa@0.0.124" has unmet peer dependency "expo@*".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > app > dripsy > @dripsy/core > @react-native-community/hooks@2.8.1" has unmet peer dependency "react@>=16.8.0".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > app > dripsy > @dripsy/core > @react-native-community/hooks@2.8.1" has unmet peer dependency "react-native@>=0.59".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > expo-app > expo-splash-screen > @expo/prebuild-config@5.0.2" has unmet peer dependency "expo-modules-autolinking@>=0.8.1".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > app > moti > framer-motion@6.5.1" has unmet peer dependency "react@>=16.8 || ^17.0.0 || ^18.0.0".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > app > moti > framer-motion@6.5.1" has unmet peer dependency "react-dom@>=16.8 || ^17.0.0 || ^18.0.0".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > expo-app > react-native@0.70.4" has incorrect peer dependency "react@18.1.0".
warning "workspace-aggregator-0a8ef2a8-2701-44e8-999d-4fc040616113 > expo-app > react-native > react-native-codegen > jscodeshift@0.13.1" has unmet peer dependency "@babel/preset-env@^7.1.6".
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
✨  Done in 20.16s.

~/Desktop/Solito2 main* 20s
❯ npm run web

> web
> cd apps/next && yarn next

yarn run v1.22.19
$ /Users/user/Desktop/Solito2/node_modules/.bin/next
warn  - Port 3000 is in use, trying 3001 instead.
ready - started server on 0.0.0.0:3001, url: http://localhost:3001
warn  - Invalid next.config.js options detected: 
  - The root value has an unexpected property, webpackDevMiddleware, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).
  - The root value has an unexpected property, configOrigin, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).
  - The root value has an unexpected property, target, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).
  - The root value has an unexpected property, webpack5, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).
  - The root value has an unexpected property, projectRoot, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).
  - The value at .amp.canonicalBase must be 1 character or more but it was 0 characters.
  - The value at .assetPrefix must be 1 character or more but it was 0 characters.
  - The value at .i18n must be an object but it was null.

See more info here: https://nextjs.org/docs/messages/invalid-next-config
warn  - You have enabled experimental features (forceSwcTransforms, swcPlugins) in next.config.js.
warn  - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.

info  - automatically enabled Fast Refresh for 1 custom loader
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/client/dev/amp-dev.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/client/router.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/client/next-dev.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/apps/next/pages/_app.tsx")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/pages/_error.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/apps/next/pages/_app.tsx")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/apps/next/pages/_document.tsx")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/pages/_error.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
error - ./pages/_app.tsx
Error: failed to process failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/apps/next/pages/_app.tsx")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag
info  - automatically enabled Fast Refresh for 1 custom loader
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/client/next-dev.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/client/dev/amp-dev.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/client/router.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/pages/_app.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/pages/_error.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
wait  - compiling /_error (client and server)...
thread 'thread '<unnamed><unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/client/router.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:' panicked at '228:failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/client/next-dev.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag14', 
/Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/client/dev/amp-dev.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/apps/next/pages/_app.tsx")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/pages/_error.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/pages/_error.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/apps/next/pages/_document.tsx")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/apps/next/pages/_app.tsx")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
error - ./pages/_app.tsx
Error: failed to process failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/apps/next/pages/_app.tsx")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag
error - Error: Cannot find module '/Users/user/Desktop/Solito2/apps/next/.next/fallback-build-manifest.json'
Require stack:
- /Users/user/Desktop/Solito2/node_modules/next/dist/server/load-components.js
- /Users/user/Desktop/Solito2/node_modules/next/dist/server/next-server.js
- /Users/user/Desktop/Solito2/node_modules/next/dist/server/dev/next-dev-server.js
- /Users/user/Desktop/Solito2/node_modules/next/dist/server/next.js
- /Users/user/Desktop/Solito2/node_modules/next/dist/server/lib/start-server.js
- /Users/user/Desktop/Solito2/node_modules/next/dist/cli/next-dev.js
- /Users/user/Desktop/Solito2/node_modules/next/dist/lib/commands.js
- /Users/user/Desktop/Solito2/node_modules/next/dist/bin/next
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at mod._resolveFilename (/Users/user/Desktop/Solito2/node_modules/next/dist/build/webpack/require-hook.js:23:32)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.loadDefaultErrorComponents (/Users/user/Desktop/Solito2/node_modules/next/dist/server/load-components.js:22:24)
    at DevServer.getFallbackErrorComponents (/Users/user/Desktop/Solito2/node_modules/next/dist/server/dev/next-dev-server.js:1034:43)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async DevServer.renderErrorToResponse (/Users/user/Desktop/Solito2/node_modules/next/dist/server/base-server.js:1118:40)
    at async DevServer.renderToResponse (/Users/user/Desktop/Solito2/node_modules/next/dist/server/base-server.js:1013:30) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/user/Desktop/Solito2/node_modules/next/dist/server/load-components.js',
    '/Users/user/Desktop/Solito2/node_modules/next/dist/server/next-server.js',
    '/Users/user/Desktop/Solito2/node_modules/next/dist/server/dev/next-dev-server.js',
    '/Users/user/Desktop/Solito2/node_modules/next/dist/server/next.js',
    '/Users/user/Desktop/Solito2/node_modules/next/dist/server/lib/start-server.js',
    '/Users/user/Desktop/Solito2/node_modules/next/dist/cli/next-dev.js',
    '/Users/user/Desktop/Solito2/node_modules/next/dist/lib/commands.js',
    '/Users/user/Desktop/Solito2/node_modules/next/dist/bin/next'
  ]
}
Error: Cannot find module '/Users/user/Desktop/Solito2/apps/next/.next/fallback-build-manifest.json'
Require stack:
- /Users/user/Desktop/Solito2/node_modules/next/dist/server/load-components.js
- /Users/user/Desktop/Solito2/node_modules/next/dist/server/next-server.js
- /Users/user/Desktop/Solito2/node_modules/next/dist/server/dev/next-dev-server.js
- /Users/user/Desktop/Solito2/node_modules/next/dist/server/next.js
- /Users/user/Desktop/Solito2/node_modules/next/dist/server/lib/start-server.js
- /Users/user/Desktop/Solito2/node_modules/next/dist/cli/next-dev.js
- /Users/user/Desktop/Solito2/node_modules/next/dist/lib/commands.js
- /Users/user/Desktop/Solito2/node_modules/next/dist/bin/next
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at mod._resolveFilename (/Users/user/Desktop/Solito2/node_modules/next/dist/build/webpack/require-hook.js:23:32)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.loadDefaultErrorComponents (/Users/user/Desktop/Solito2/node_modules/next/dist/server/load-components.js:22:24)
    at DevServer.getFallbackErrorComponents (/Users/user/Desktop/Solito2/node_modules/next/dist/server/dev/next-dev-server.js:1034:43)
    at async DevServer.renderErrorToResponse (/Users/user/Desktop/Solito2/node_modules/next/dist/server/base-server.js:1118:40)
    at async pipe.req.req (/Users/user/Desktop/Solito2/node_modules/next/dist/server/base-server.js:1040:30)
    at async DevServer.pipe (/Users/user/Desktop/Solito2/node_modules/next/dist/server/base-server.js:404:25) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/user/Desktop/Solito2/node_modules/next/dist/server/load-components.js',
    '/Users/user/Desktop/Solito2/node_modules/next/dist/server/next-server.js',
    '/Users/user/Desktop/Solito2/node_modules/next/dist/server/dev/next-dev-server.js',
    '/Users/user/Desktop/Solito2/node_modules/next/dist/server/next.js',
    '/Users/user/Desktop/Solito2/node_modules/next/dist/server/lib/start-server.js',
    '/Users/user/Desktop/Solito2/node_modules/next/dist/cli/next-dev.js',
    '/Users/user/Desktop/Solito2/node_modules/next/dist/lib/commands.js',
    '/Users/user/Desktop/Solito2/node_modules/next/dist/bin/next'
  ]
}
^C

web url not opened log

❯ yarn
yarn install v1.22.19
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 1.17s.

~/Desktop/Solito2 main
❯ npm run web

> web
> cd apps/next && yarn next

yarn run v1.22.19
$ /Users/user/Desktop/Solito2/node_modules/.bin/next
warn  - Port 3000 is in use, trying 3001 instead.
ready - started server on 0.0.0.0:3001, url: http://localhost:3001
warn  - Invalid next.config.js options detected: 
  - The root value has an unexpected property, webpackDevMiddleware, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).
  - The root value has an unexpected property, configOrigin, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).
  - The root value has an unexpected property, target, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).
  - The root value has an unexpected property, webpack5, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).
  - The root value has an unexpected property, projectRoot, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).
  - The value at .amp.canonicalBase must be 1 character or more but it was 0 characters.
  - The value at .assetPrefix must be 1 character or more but it was 0 characters.
  - The value at .i18n must be an object but it was null.

See more info here: https://nextjs.org/docs/messages/invalid-next-config
warn  - You have enabled experimental features (forceSwcTransforms, swcPlugins) in next.config.js.
warn  - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.

info  - automatically enabled Fast Refresh for 1 custom loader
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/client/dev/amp-dev.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/client/router.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diagthread '', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs<unnamed>:' panicked at '228failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/client/next-dev.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag:', 14/Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14

thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/pages/_error.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/apps/next/pages/_app.tsx")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/apps/next/pages/_document.tsx")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', thread '/Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/node_modules/next/dist/pages/_error.js")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14228:14

thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/apps/next/pages/_app.tsx")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.232.53/src/plugin.rs:228:14
error - ./pages/_app.tsx
Error: failed to process failed to invoke plugin: failed to invoke plugin on 'Some("/Users/user/Desktop/Solito2/apps/next/pages/_app.tsx")'

Caused by:
    Missing export __get_transform_plugin_core_pkg_diag

@glauberfc
Copy link
Author

sounds like a next issue?

I'm not sure. It's not happening when I start a new project using create-next-app

@nandorojo
Copy link
Owner

even with next 12? does this happen in the app creation step?

@glauberfc
Copy link
Author

even with next 12? does this happen in the app creation step?

The error happens when I run yarn web.
I tested with a create-next-app project using next 12.3 and the bug didn't happen.

@nandorojo
Copy link
Owner

nandorojo commented Nov 8, 2022

I wonder if #223 fixes this. I think it's due to an incorrect reanimated plugin version.

@justsee
Copy link

justsee commented Nov 10, 2022

This is a node issue which appears with newer versions and relates to an ssl lib issue.

export NODE_OPTIONS=--openssl-legacy-provider will downgrade the lib and should avoid this particular issue, or alternatively use an LTS version.

See: webpack/webpack#14532 (comment).

@glauberfc
Copy link
Author

I wonder if #223 fixes this. I think it's due to an incorrect reanimated plugin version.

@nandorojo to test this fix do I just need to create a new project with the latest version of Solito?

@nandorojo
Copy link
Owner

nandorojo commented Nov 10, 2022

People are posting unrelated stack traces here rather than creating new issues so it's a bit hard to say for each one. OP's post seems like a node issue, it should get fixed with node 16, or trying @justsee's suggestion. I'm not totally sure what the cause is atm.

@himyjan
Copy link

himyjan commented Nov 11, 2022

#219 (comment)
example turborepo solito-blank
npm run web with next.js 13
working after remove a setting in next.config.js

forceSwcTransforms: true,

@nandorojo
Copy link
Owner

I believe npx create-solito-app@latest should fix this all now.

@nandorojo nandorojo reopened this Nov 22, 2022
@nandorojo
Copy link
Owner

nandorojo commented Nov 22, 2022

Can you also try @justsee's suggestion? This worked for me when disabling SWC.

NODE_OPTIONS=--openssl-legacy-provider yarn next

@nandorojo
Copy link
Owner

I also fixed the main issue with nvm use 16. Looks like node 18 causes it.

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

4 participants