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

Need to import HelloWorldCommandSetStrings module to the .ts file #9665

Open
Mengting233 opened this issue Apr 28, 2024 · 0 comments
Open

Need to import HelloWorldCommandSetStrings module to the .ts file #9665

Mengting233 opened this issue Apr 28, 2024 · 0 comments

Comments

@Mengting233
Copy link

Mengting233 commented Apr 28, 2024

Node version: 18.17.1
SPFx version: 1.18.2

In Enhance the ListView Command Set rendering section, I need to add below code to the import section in the .ts file, in order to make the ${strings.Command1} ${strings.Command2} to not have error when build:

import * as strings from 'HelloWorldCommandSetStrings';

Any plan to update such step to the instruction to reduce the confusion while following the instruction?

image

Below is how it looks like in the myStrings.d.ts file:

image


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

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