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

Cannot find module '@intlify/core/src/runtime' #230

Closed
staf opened this issue Dec 14, 2020 · 0 comments · Fixed by #233
Closed

Cannot find module '@intlify/core/src/runtime' #230

staf opened this issue Dec 14, 2020 · 0 comments · Fixed by #233
Labels
Type: Improvement Includes backwards-compatible fixes

Comments

@staf
Copy link

staf commented Dec 14, 2020

vue & vue-i18n version

  • vue: 3.0.4
  • vue-i18n: 9.0.0-beta.12

Steps to reproduce

Install package with npm as a dependency -> check dist files of package in node_modules.

What is Expected?

All "internal" files to the package should logically be included when installing it.

What is actually happening?

The module @intlify/core/src/runtime does not seem to be included in the published package. The package simply seems to try loading files from outside the dist folder which isn't part of the published package. This is at least an issue when using Typescript.

The following snippet is from the types file of the published package. Note all the imports from the core/src folder.

import type { App } from 'vue';
import type { ComponentInternalInstance } from 'vue';
import type { ComputedRef } from '@vue/reactivity';
import type { DateTimeFormat } from '@intlify/core/src/runtime';
import type { DateTimeFormats } from '@intlify/core/src/runtime';
import { DateTimeOptions } from '@intlify/core/src/runtime';
import type { FallbackLocale } from '@intlify/core/src/runtime';
import { LinkedModifiers } from '@intlify/runtime';
import type { Locale } from '@intlify/core/src/runtime';
import type { LocaleMessageDictionary } from '@intlify/core/src/runtime';
import type { LocaleMessages } from '@intlify/core/src/runtime';
import type { LocaleMessageValue } from '@intlify/core/src/runtime';
import { MessageFunction } from '@intlify/runtime';
import { MessageFunctions } from '@intlify/runtime';
import type { NamedValue } from '@intlify/runtime';
import type { NumberFormat as NumberFormat_2 } from '@intlify/core/src/runtime';
import type { NumberFormats } from '@intlify/core/src/runtime';
import { NumberOptions } from '@intlify/core/src/runtime';
import type { ObjectDirective } from 'vue';
import { Path } from '@intlify/message-resolver';
import { PathValue } from '@intlify/message-resolver';
import { PluralizationRule } from '@intlify/runtime';
import type { PluralizationRules } from '@intlify/runtime';
import { PostTranslationHandler } from '@intlify/core/src/runtime';
import type { RenderFunction } from 'vue';
import type { SetupContext } from 'vue';
import { TranslateOptions } from '@intlify/core/src/runtime';
import type { VNode } from 'vue';
import type { WritableComputedRef } from '@vue/reactivity';
@kazupon kazupon added the Type: Improvement Includes backwards-compatible fixes label Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Improvement Includes backwards-compatible fixes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants