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

Unexpected token error #1604

Closed
4 tasks done
pclokcer opened this issue Oct 23, 2023 · 1 comment
Closed
4 tasks done

Unexpected token error #1604

pclokcer opened this issue Oct 23, 2023 · 1 comment
Labels
Status: Review Needed Request for review comments

Comments

@pclokcer
Copy link

pclokcer commented Oct 23, 2023

Reporting a bug?

https://prnt.sc/Vo77iKYxFMo5

that is problem ?

how can I fix ?

Expected behavior

if ('source' in source.loc) {
  return source.loc.source;
}

System Info

node -v => 18.18.2

Screenshot

https://prnt.sc/Vo77iKYxFMo5

Additional context

No response

Validations

@pclokcer pclokcer added the Status: Review Needed Request for review comments label Oct 23, 2023
@christian-benseler-farm
Copy link

christian-benseler-farm commented Oct 23, 2023

Same problem here.

@pclokcer I managed to fix (but I don´t know the real impacts) adding babel-loader to vue-i18n and importing vue-i18n.esm-browser.js in main.ts


//rule in vue.config.js' configureWebpack 
{
	test: /\.js$/,
	loader: 'babel-loader',
	include: /node_modules\/vue-i18n/,
}

//main.ts
import { createI18n } from 'vue-i18n/dist/vue-i18n.esm-browser.js';

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

2 participants