Comments (6)
I noticed the same. It's because the snowpack.config.js in @snowpack/app-scripts-svelte specifies a build script for .js files that looks like:
"build:js": "cat"
But there is no cat
executable on windows. My workaround was to run npm start and/or npm build from a Git Bash prompt instead of from the Windows command prompt because Git Bash adds basic unix tools like cat
to the path.
Maybe the template should install and use the cat npm module since that appears to be cross platform.
from create-snowpack-app.
FYI, I did npm install cat
in my sample project made from the template and it started working because that npm module installs a cat
command in node_modules.
from create-snowpack-app.
Didn't even think of this! Could be smart to just add this as a dependency to the app-scripts package by default
from create-snowpack-app.
Update: With the way we're going, cat
may just end up being the default behavior: If no build script is defined, assume it's okay to just copy over. In that case, we could just remove cat
and solve this problem by ignoring it (for now, anyway)
from create-snowpack-app.
Fixed: files without a build script are now copied by default. This has been true for a while, but we are now also handling JS imports properly as well for JS files, with or without a 'build:js' script.
you can remove 'cat' from your build scripts (we're removing them now from the CSA apps) and this should solve this problem.
if you run into this problem later on in your own scripts, you can check out: https://github.com/shelljs/shx
from create-snowpack-app.
Thank you very much guys!
from create-snowpack-app.
Related Issues (20)
- Babel Plugin import not working with snowpack HOT 1
- [webpack] Support non-SPA use-case HOT 1
- [plugin-webpack] Not compatible with [app-template-vue] HOT 1
- [plugin-webpack] Production builds: No bundle splitting based on `import(...)` directives HOT 9
- [plugin-svelte] Can not find App.css.js HOT 3
- Provide a blank template for Typescript HOT 4
- Feature request: Add pnpm as install option HOT 5
- Building is broken for Svelte HOT 5
- Add support for creating .gitignore from template HOT 5
- Can we have cli wizard prompts? HOT 6
- @snowpack/app-template-blank-typescript does not exist on NPM HOT 5
- onboard validations to ensure that the respective package manager is installed HOT 4
- plugin-dotenv doesn't work HOT 2
- [plugin-webpack] granular chunking for multi-page apps?
- [@snowpack/app-template-11ty] - HMR issue eleventy templates HOT 1
- Migrating Reactboilerplate app into CSA failing HOT 2
- [@snowpack/plugin-webpack] Use public path instead of baseUrl HOT 1
- [pnpm] missing dependencies in app-template-react-typescript (--use-pnpm) HOT 2
- svelte-typescript-template HOT 1
- Vue cannot use PostCSS in style tag. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-snowpack-app.