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

Missing compile function in SSR build #360

Closed
4 tasks done
Kyzegs opened this issue May 1, 2024 · 0 comments
Closed
4 tasks done

Missing compile function in SSR build #360

Kyzegs opened this issue May 1, 2024 · 0 comments
Labels
Status: Review Needed Request for review comments

Comments

@Kyzegs
Copy link

Kyzegs commented May 1, 2024

Reporting a bug?

Unable to use SSR because build is missing a compile function.

Expected behavior

To be able to run without any issues.

Reproduction

Coming soon...

Issue Package

unplugin-vue-i18n

System Info

System:
  OS: Linux 6.2 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
  CPU: (2) x64 AMD EPYC 7763 64-Core Processor
  Memory: 3.44 GB / 7.74 GB
  Container: Yes
  Shell: 5.1.16 - /bin/bash
Binaries:
  Node: 20.12.2 - /usr/bin/node
  Yarn: 1.22.19 - /usr/bin/yarn
  npm: 10.7.0 - /usr/bin/npm
  pnpm: 9.0.6 - /usr/bin/pnpm
  bun: 1.1.6 - /usr/bin/bun
npmPackages:
  vite: ^5.2.10 => 5.2.10
  vue: ^3.4.26 => 3.4.26
  vue-i18n: ^9.13.1 => 9.13.1

Screenshot

No response

Additional context

file:///var/www/html/bootstrap/ssr/ssr.mjs:7
import { CoreWarnCodes, CoreErrorCodes, registerMessageCompiler, compile, registerMessageResolver, resolveValue, registerLocaleFallbacker, fallbackWithLocaleChain, setDevToolsHook, createCompileError, DEFAULT_LOCALE, updateFallbackLocale, NUMBER_FORMAT_OPTIONS_KEYS, DATETIME_FORMAT_OPTIONS_KEYS, setFallbackContext, createCoreContext, clearDateTimeFormat, clearNumberFormat, isMessageAST, setAdditionalMeta, getFallbackContext, NOT_REOSLVED, isTranslateFallbackWarn, isTranslateMissingWarn, parseTranslateArgs, translate, MISSING_RESOLVE_VALUE, parseDateTimeArgs, datetime, parseNumberArgs, number, isMessageFunction } from '@intlify/core-base';
                                                                 ^^^^^^^
SyntaxError: The requested module '@intlify/core-base' does not provide an export named 'compile'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
    at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)
    at async loadESM (node:internal/process/esm_loader:28:7)
    at async handleMainPromise (node:internal/modules/run_main:113:12)

Node.js v20.12.2

Validations

  • Read the Contributing Guidelines.
  • Read the README
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion.
@Kyzegs Kyzegs added the Status: Review Needed Request for review comments label May 1, 2024
@Kyzegs Kyzegs closed this as completed May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Review Needed Request for review comments
Projects
None yet
Development

No branches or pull requests

1 participant