s-KaiNet / spfx-check-locale

Check the consistency of your localization files inside SharePoint Framework projects.
https://marketplace.visualstudio.com/items?itemName=s-kainet.spfx-check-locale
MIT License
3 stars 1 forks source link

SPFx 1.15.0-rc.0 - ENOENT: no such file or directory, open '/.../src/webparts/.../loc/lib.dom.d.js' #1

Closed MarkusLanger closed 2 years ago

MarkusLanger commented 2 years ago

I created a new SPFx project with the public preview version "1.15.0-rc.0". I get an error from spfx-check-locale.

image

Steps to reproduce:

  1. create a new SPFx project
  2. add spfx-check-locale package and modify gulpfile as described => https://github.com/s-KaiNet/spfx-check-locale#how-to-use
  3. run gulp build --ship
s-KaiNet commented 2 years ago

I've published version 0.0.4 with the fix.

Strange enough, but the fix was just to update dependencies. Anyway, I added additional checks to prevent this kind of error in the future (lib.dom.d.js is not even a part of the virtual check-locale TS build, I don't have any idea why it appears in the output). Please check if it works as expected for you.

MarkusLanger commented 2 years ago

Works very well. Thanks for the quick support.