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

TypeError: Cannot read properties of undefined (reading 'alias') #194

Closed
4 tasks done
cmitjans-at-wiris opened this issue Oct 26, 2022 · 0 comments · Fixed by #198
Closed
4 tasks done

TypeError: Cannot read properties of undefined (reading 'alias') #194

cmitjans-at-wiris opened this issue Oct 26, 2022 · 0 comments · Fixed by #198
Labels

Comments

@cmitjans-at-wiris
Copy link

cmitjans-at-wiris commented Oct 26, 2022

Reporting a bug?

I'm using @intlify/unplugin-vue-i18n/vite. When using vite build, the following error is returned:

TypeError: Cannot read properties of undefined (reading 'alias')

Looking at the code it seems that the problem is that I haven't defined resolve.alias configuration in vite. If I add an empty object to resolve.alias, the error goes away.

I'm using tsconfig-paths so I don't need resolve.alias.

Expected behavior

It should work without defining resolve.alias in vite

Reproduction

Vite configuration without resolve.alias defined.

Issue Package

unplugin-vue-i18n

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (24) x64 AMD Ryzen 9 5900X 12-Core Processor
    Memory: 16.80 GB / 31.92 GB
  Binaries:
    Node: 17.6.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.17 - C:\Program Files\nodejs\yarn.CMD
    npm: 8.5.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.674.0), Chromium (106.0.1370.52)
    Internet Explorer: 11.0.22621.1

Screenshot

No response

Additional context

No response

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants