NextJS crashes when importing an action from a 'use server' file with: TypeError: private_next_rsc_action_validate__WEBPACK_IMPORTED_MODULE_1__ is not a function #54230
Labels
bug
Issue was opened via the bug report template.
linear: next
Confirmed issue that is tracked by the Next.js team.
locked
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 Binaries: Node: 18.13.0 npm: 8.19.3 Yarn: 1.22.19 pnpm: 7.26.2 Relevant Packages: next: 13.4.18-canary.0 eslint-config-next: 13.4.18 react: 18.2.0 react-dom: 18.2.0 typescript: 5.1.6 Next.js Config: output: N/A
Which area(s) of Next.js are affected? (leave empty if unsure)
App Router
Link to the code that reproduces this issue or a replay of the bug
https://github.com/samijaber/nextjs-repro-issues/tree/acb3a6e50bca8b0c9933ac440234b9eef498c93d
To Reproduce
npm install
npm dev
You will see this:
Describe the Bug
NextJS is unable to import some
validate
function related to server actions.NOTE: the files in src result from bundling a library using
vite
/rollup
. This is why they don't necessarily look like how a human would write them. My real-case issue is around bundling an npm package for consumption by NextJS, so this is why I am showing the bug occurring in this particular format.Expected Behavior
NextJS should be able to load the import
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
NEXT-1534
The text was updated successfully, but these errors were encountered: