smapiot / piral-templates Goto Github PK
View Code? Open in Web Editor NEWThe official templates for Piral Instances and pilets. :palm_tree:
Home Page: https://docs.piral.io
License: MIT License
The official templates for Piral Instances and pilets. :palm_tree:
Home Page: https://docs.piral.io
License: MIT License
When attempting to create a new Pilet using the provided Vue 3 template in the Piral CLI, I encountered an error related to the vue-loader package. The error message suggests that there is no matching version found for vue-loader@^18, which is required by the template. However, the latest available version of vue-loader is only 17.3.1, and version 18 does not exist.
This is the line from the template in question causing the issue: https://github.com/smapiot/piral-templates/blame/f1f0c4a1e1cdbdf066d018cda4c4a0509c78c53e/templates/pilet-template-vue/src/helpers.ts#L34
Piral CLI version: 1.3.2
Vue version: 3
Piral template: Vue 3
This project uses the locally run Sample Pilet Feed v1.3.2 (GitHub).
my-app
(app shell)my-pilet
(micro-frontend/fragment)npx sample-pilet-service
Versions in Pilet called "my-pilet-vue-1":
{
"devDependencies": {
"@types/node": "latest",
"@types/react": "^18",
"@types/react-dom": "^18",
"@vue/compiler-sfc": "^3",
"my-app": "file:..\\my-app\\dist\\emulator\\my-app-1.0.0.tgz",
"piral-cli": "1.3.2",
"piral-cli-webpack5": "1.3.3",
"piral-vue-3": "1.3.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-router": "5.3.4",
"react-router-dom": "5.3.4",
"tslib": "2.6.2",
"typescript": "latest",
"vue": "^3",
"vue-loader": "^17.3.1"
}
}
Versions in Piral instance called "my-app":
{
"dependencies": {
"piral": "1.3.2",
"piral-base": "1.3.2",
"piral-core": "1.3.2",
"react": "^18",
"react-dom": "^18",
"react-router": "^5",
"react-router-dom": "^5"
},
"devDependencies": {
"@types/node": "latest",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/react-router": "^5",
"@types-react-router-dom": "^5",
"piral-cli": "1.3.2",
"piral-cli-webpack5": "1.3.2",
"typescript": "latest"
}
}
piral new ./my-app/dist/emulator/my-app-1.0.0.tgz --target my-pilet-vue-1 --template vue --vars.standalone true --vars.vueVersion 3
The Pilet creation process should work without encountering errors related to package versions that do not exist.
Console log:
npm ERR! code ETARGET
npm ERR! notarget No matching version found for vue-loader@^18.
npm ERR! notarget In most cases, you or one of your dependencies are requesting a package version that doesn't exist.
Workaround:
Manually installing vue-loader version 17.3.1 after using the Piral CLI with the template allows the project to work as expected.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.