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

SyntaxError: The requested module does not provide an export named 'prerendering' #7847

Closed
romelperez opened this issue Nov 28, 2022 · 2 comments

Comments

@romelperez
Copy link

romelperez commented Nov 28, 2022

Describe the bug

Hello! After I updated SvelteKit to version 1.0.0-next.564, the app got a runtime error with the following message:

SyntaxError: The requested module '/node_modules/@sveltejs/kit/src/runtime/app/environment.js?v=f9512d5e' does not provide an export named 'prerendering'

I search for all my source code but there is no import for that dependency. I also reviewed the migration documentation in the PR which introduced that breaking change at #7762 but still the error was appearing.

When I searched for a possible import in the .svelte-kit folder output but I didn't find either the import to that dependency.

The app svelte.config.js looks like this:

import adapter from '@sveltejs/adapter-cloudflare';
import preprocess from 'svelte-preprocess';

const config = {
	preprocess: preprocess({
		postcss: true
	}),

	kit: {
		adapter: adapter(),
		alias: {
			$houdini: './$houdini'
		}
	}
};

export default config;

The @sveltejs/adapter-cloudflare was removed but still the error appeared.

Reproduction

I don't know what is adding the problem to the app, but in our source code, there is no import to that dependency.

Logs

11:01:59.013 client-manifest.js:23 SyntaxError: The requested module '/node_modules/@sveltejs/kit/src/runtime/app/environment.js?v=f9512d5e' does not provide an export named 'prerendering' (at adapter.js:1:19)
handleError @ client-manifest.js:23
handle_error @ client.js?v=f9512d5e:1633
_hydrate @ client.js?v=f9512d5e:1574
await in _hydrate (async)
start @ start.js:38
(anonymous) @ sign-in:95
11:01:59.014 adapter.js:1 Uncaught (in promise) SyntaxError: The requested module '/node_modules/@sveltejs/kit/src/runtime/app/environment.js?v=f9512d5e' does not provide an export named 'prerendering' (at adapter.js:1:19)
11:01:59.014 adapter.js:1 Uncaught (in promise) SyntaxError: The requested module '/node_modules/@sveltejs/kit/src/runtime/app/environment.js?v=f9512d5e' does not provide an export named 'prerendering' (at adapter.js:1:19)
await (async)
(anonymous) @ sign-in:95

System Info

System:
    OS: macOS 11.4
    CPU: (8) arm64 Apple M1
    Memory: 99.22 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.18.1 - ~/.nvm/versions/node/v16.18.1/bin/node
    npm: 8.19.2 - ~/.nvm/versions/node/v16.18.1/bin/npm
  Browsers:
    Chrome: 107.0.5304.121
    Firefox: 107.0
    Safari: 14.1.1
  npmPackages:
    @sveltejs/adapter-auto: ^1.0.0-next.89 => 1.0.0-next.89 
    @sveltejs/adapter-cloudflare: ^1.0.0-next.40 => 1.0.0-next.40 
    @sveltejs/kit: ^1.0.0-next.564 => 1.0.0-next.564 
    svelte: ^3.53.1 => 3.53.1 
    vite: ^3.2.4 => 3.2.4

Severity

blocking an upgrade

Additional Information

Thank you!

@dummdidumm
Copy link
Member

Is there some third party package that maybe does use this? Your config hints that you use houdini - do they use that export?

@romelperez
Copy link
Author

romelperez commented Nov 28, 2022

@dummdidumm, I am going to check it out.


Yes, it is Houdini package, a third-party package using that dependency. They just fixed it but haven't made a release.

Thank you for the quick response @dummdidumm !

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

2 participants