Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Could not resolve entry module (index.html) #174

Open
CallumHoward opened this issue Jul 24, 2022 · 0 comments
Open

bug: Could not resolve entry module (index.html) #174

CallumHoward opened this issue Jul 24, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@CallumHoward
Copy link

CallumHoward commented Jul 24, 2022

Describe the Bug

Following the setup instructions on a fresh SvelteKit demo project with the pinned versions from the compatibility table I get the following error upon doing yarn build:
Screen Shot 2022-07-24 at 11 56 21 am

After running this, there is a generated public folder with a single index.html inside which does have content.

Node version: 17.9.1

Steps to Reproduce

  1. Run npm create svelte@latest sveltekit-firebase-hosting
✔ Which Svelte app template? › SvelteKit demo app
✔ Add type checking with TypeScript? › Yes, using TypeScript syntax
✔ Add ESLint for code linting? … No / Yes
✔ Add Prettier for code formatting? … No / Yes
✔ Add Playwright for browser testing? … No / Yes 
  1. Edit package.json to pin compatible versions:
17c17
< 		"@sveltejs/kit": "next",
---
> 		"@sveltejs/kit": "1.0.0-next.330",
26a27
> 		"svelte-adapter-firebase": "0.14.0",
  1. yarn install
  2. firebase init
  3. Run yarn build and the error above is shown
Full `firebase init` log
$ firebase init

     ######## #### ########  ######## ########     ###     ######  ########
     ##        ##  ##     ## ##       ##     ##  ##   ##  ##       ##
     ######    ##  ########  ######   ########  #########  ######  ######
     ##        ##  ##    ##  ##       ##     ## ##     ##       ## ##
     ##       #### ##     ## ######## ########  ##     ##  ######  ########

You're about to initialize a Firebase project in this directory:

  /Users/callumhoward/git/sveltekit-firebase-hosting

? Which Firebase features do you want to set up for this directory? Press Space to select features, then Enter to confirm your choices. Firestore: Configure security rules and indexes files for Firestore, Functio
ns: Configure a Cloud Functions directory and its files, Hosting: Configure files for Firebase Hosting and (optionally) set up GitHub Action deploys

=== Project Setup

First, let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add,
but for now we'll just set up a default project.

? Please select an option: Use an existing project
? Select a default Firebase project for this directory: project-tour-5187c (project-tour)
i  Using project project-tour-5187c (project-tour)

=== Firestore Setup

Firestore Security Rules allow you to define how and when to allow
requests. You can keep these rules in your project directory
and publish them with firebase deploy.

? What file should be used for Firestore Rules? firestore.rules

Firestore indexes allow you to perform complex queries while
maintaining performance that scales with the size of the result
set. You can keep index definitions in your project directory
and publish them with firebase deploy.

? What file should be used for Firestore indexes? firestore.indexes.json

=== Functions Setup

A functions directory will be created in your project with sample code
pre-configured. Functions can be deployed with firebase deploy.

? What language would you like to use to write Cloud Functions? TypeScript
? Do you want to use ESLint to catch probable bugs and enforce style? Yes
✔  Wrote functions/package.json
✔  Wrote functions/.eslintrc.js
✔  Wrote functions/tsconfig.json
✔  Wrote functions/tsconfig.dev.json
✔  Wrote functions/src/index.ts
✔  Wrote functions/.gitignore
? Do you want to install dependencies with npm now? No

=== Hosting Setup

Your public directory is the folder (relative to your project directory) that
will contain Hosting assets to be uploaded with firebase deploy. If you
have a build process for your assets, use your build's output directory.

? What do you want to use as your public directory? public
? Configure as a single-page app (rewrite all urls to /index.html)? Yes
? Set up automatic builds and deploys with GitHub? No
✔  Wrote public/index.html

i  Writing configuration info to firebase.json...
i  Writing project information to .firebaserc...

✔  Firebase initialization complete!
```</summary>




### Expected Behaviour

Expected no error, and output of a cloud function to be placed in `index.js`.

### svelte-adapter-firebase version

0.14.0

### sveltejs/kit version

1.0.0-next.330
@CallumHoward CallumHoward added the bug Something isn't working label Jul 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant