hmmhmmhm / svelte-template Goto Github PK
View Code? Open in Web Editor NEW๐ง An easy-to-use Svelte template! (Svelte + Typescript + Parcel + Express) 2020
License: MIT License
๐ง An easy-to-use Svelte template! (Svelte + Typescript + Parcel + Express) 2020
License: MIT License
Hi @hmmhmmhm ,
With module set to "commonjs" in your tsconfig, try importing (using es6 import) a ts file into index.svelte . it fails with module not found. now when you set module to es6 or esnext, it works , but throws a build /start/ error (well when you run any of the npm scripts other than clean).
with module set to es6 you get
import { __assign, __awaiter, __generator } from "tslib";
^
SyntaxError: Unexpected token {
on build
After cloning git and then running npm install results to error.
rm -rf ./.cache && node ./postinstall.ts
'rm' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: rm -rf ./.cache && node ./postinstall.ts
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Jarmo\AppData\Roaming\npm-cache_logs\2020-02-23T11_42_29_088Z-debug.log
What do you think about integrating Sapper?
When doing a straight git clone I'm having trouble loading localhost:8080
Steps:
npm install
npm start
Is there anything else that needs to be done? I've also .gitignore
ed node_modules
and the .cache
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.