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
Module not found: Can't resolve '$paraglide/runtime.js' #108
Comments
Depending on how it was configured when you ran Is the
If it is set up correctly & still doesn't work:
|
I have import withBundleAnalyzer from '@next/bundle-analyzer';
import { paraglide } from '@inlang/paraglide-next/plugin';
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
eslint: { ignoreDuringBuilds: true },
experimental: { optimizePackageImports: ['@mantine/core', '@mantine/hooks'] },
};
export default process.env.ANALYZE === 'true'
? paraglide({
...withBundleAnalyzer(nextConfig),
paraglide: {
outdir: './paraglide',
project: './project.inlang',
},
})
: paraglide({
...nextConfig,
paraglide: {
outdir: './paraglide',
project: './project.inlang',
},
}); Am I missing any steps on https://inlang.com/m/osslbuzt/paraglide-next-i18n ? |
Your config looks correct. I'll try to reproduce your issue |
Something fixed this somehow. I was on Windows 11 |
Odd but good I guess. LMK if it pops up again! |
Followed this Using ParaglideJS with Next.js' App Router guide.
Changed my moduleResolution to Bundler. A few file is created and got changed as intended.
But whenever I run
pnpm dev
a Build Error occurs.I have "@inlang/paraglide-next": "0.1.7" as dependency and "@inlang/paraglide-js": "1.7.3" as devDependency.
The text was updated successfully, but these errors were encountered: