Josef Henryson
07/30/2024, 9:38 AMError MSB3027
Could not copy "C:\Projects\***\App_Plugins\QuoteColor\node_modules\@umbraco-cms\backoffice\dist-cms\packages\block\block-grid\property-editors\block-grid-group-configuration\property-editor-ui-block-grid-group-configuration.element.d.ts" to "bin\Debug\net8.0\App_Plugins\QuoteColor\node_modules\@umbraco-cms\backoffice\dist-cms\packages\block\block-grid\property-editors\block-grid-group-configuration\property-editor-ui-block-grid-group-configuration.element.d.ts". Exceeded retry count of 10. Failed.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 5254
I have tried to exclude the node_modules folder from my project but it keeps throwing this error.
Any ideas on how to resolve this?
Thanks, JosefJosef Henryson
07/30/2024, 9:49 AMJosef Henryson
07/31/2024, 12:19 PMSebastiaan
07/31/2024, 12:42 PMApp_Plugins\QuoteColor\node_modules\
don't install your node modules within the App_Plugins directory.. there's a way to copy them over properly from outside of it.
I want the docs to be improved, they're not that easy to follow I learned recently, but please have a look at this video where I set it all up and we discuss where things can be put. Josef Henryson
07/31/2024, 1:49 PMSebastiaan
07/31/2024, 1:56 PMSebastiaan
07/31/2024, 1:57 PMwwwroot\App_Plugins
etc. This is where npm copies the build files to
https://cdn.discordapp.com/attachments/1267778210225979495/1268205796655763568/image.png?ex=66ab9430&is=66aa42b0&hm=4ac7fc94786ed6d04044b6b1fecfd77be8f0a5a12928cbb7264b75c5e8ded702&Sebastiaan
07/31/2024, 1:57 PMvite.config.ts
(outDir
)
js
import { defineConfig } from "vite";
export default defineConfig({
build: {
lib: {
entry: "src/my-element.ts", // your web component source file
formats: ["es"],
},
outDir: "../wwwroot/App_Plugins/Our.Umbraco.GoogleMaps/dist", // all compiled files will be placed here
emptyOutDir: true,
sourcemap: true,
rollupOptions: {
external: [/^@umbraco/], // ignore the Umbraco Backoffice package in the build
},
},
base: "/wwwroot/App_Plugins/Our.Umbraco.GoogleMaps/", // the base path of the app in the browser (used for assets)
});
Sebastiaan
07/31/2024, 2:05 PMnpm i && npm run build
in .\Gmaps.TakeTwo\Our.Umbraco.GoogleMaps\Client
- the source for the dashboard is in the .\Gmaps.TakeTwo\Our.Umbraco.GoogleMaps\Client\src
folder (my-element.ts
).
https://cdn.discordapp.com/attachments/1267778210225979495/1268207976532148286/Gmaps.TakeTwo.zip?ex=66ab9637&is=66aa44b7&hm=03da0eddde8bab38a843d96c6af41adc13826d192bc987e2c697b858824f0dab&Sebastiaan
07/31/2024, 2:07 PMtest@test.com
/ test123456
Josef Henryson
07/31/2024, 2:07 PM