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

天地图TS打包报错,请问要怎么解决 #50

Open
marinesky opened this issue Aug 14, 2024 · 0 comments
Open

天地图TS打包报错,请问要怎么解决 #50

marinesky opened this issue Aug 14, 2024 · 0 comments

Comments

@marinesky
Copy link

error like this:

vue-tsc --noEmit & vite build

Debugger attached.
node_modules/.pnpm/[email protected][email protected][email protected]_/node_modules/vue-tianditu/packages/install.ts:9:21 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.

9 app.component(component.name, component);
~~~~~~~~~~~~~~

node_modules/.pnpm/[email protected][email protected][email protected]_/node_modules/vue-tianditu/packages/utils/string.ts:6:14 - error TS2322: Type 'string' is not assignable to type 'Capitalize'.

6 if (!word) return word;
~~~~~~

node_modules/.pnpm/[email protected][email protected][email protected]_/node_modules/vue-tianditu/packages/utils/string.ts:7:3 - error TS2322: Type 'string' is not assignable to type 'Capitalize'.

7 return word[0].toUpperCase() + word.substr(1).toLowerCase();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant