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

The requested module 'untyped' does not provide an export named 'defineUntypedSchema' #15013

Closed
RijaCloud opened this issue Sep 22, 2022 · 4 comments

Comments

@RijaCloud
Copy link

RijaCloud commented Sep 22, 2022

Environment

Operating System: Windows 10
Node Version: v14.16.1
Nuxt Version: 3.0.0-rc.11
Builder: vite
Runtime Modules: -
Build Modules: -

Reproduction

After upgrading nuxt rc8 to rc11, by running the npm run dev command

Describe the bug

I don't exactly understant what is the issue because all I did was to upgrade my nuxt version.

Additional context

No response

Logs

ERROR  Cannot start nuxt:  The requested module 'untyped' does not provide an export named 'defineUntypedSchema'

  import { defineUntypedSchema } from 'untyped';
  ^^^^^^^^^^^^^^^^^^^
  SyntaxError: The requested module 'untyped' does not provide an export named 'defineUntypedSchema'
  at ModuleJob._instantiate (internal/modules/esm/module_job.js:104:21)
  at async ModuleJob.run (internal/modules/esm/module_job.js:149:5)
  at async Loader.import (internal/modules/esm/loader.js:166:24)
  at async loadNuxt (/C:/Users/Dilypse/Documents/dilypse-front/node_modules/@nuxt/kit/dist/index.mjs:703:37)
  at async load (/C:/Users/Dilypse/Documents/dilypse-front/node_modules/nuxt/node_modules/nuxi/dist/chunks/dev.mjs:6767:23)
  at async Object.invoke (/C:/Users/Dilypse/Documents/dilypse-front/node_modules/nuxt/node_modules/nuxi/dist/chunks/dev.mjs:6828:5)
  at async _main (/C:/Users/Dilypse/Documents/dilypse-front/node_modules/nuxt/node_modules/nuxi/dist/cli.mjs:50:20)
@danielroe
Copy link
Member

See #14803. You have an outdated version of untyped installed. You can try refreshing your lockfile or manually installing it.

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Sep 22, 2022
@RijaCloud
Copy link
Author

@danielroe I am not using yarn, so this doesn't really help me.

@danielroe
Copy link
Member

danielroe commented Sep 22, 2022

Well, you can run the equivalent npm command, which iirc is npm up untyped 😉

Link: https://docs.npmjs.com/cli/v8/commands/npm-update

@RijaCloud
Copy link
Author

It seems I had to run npm i untyped as the module didn't exist in my package.json. It solved the problem

@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants