Code Monkey home page Code Monkey logo

Comments (4)

oreoluwa-bs avatar oreoluwa-bs commented on September 17, 2024 3

I also have this issue on a mac
Running this in the root directory
"@remix-pwa/dev": "^3.0.0",
"@remix-pwa/worker-runtime": "^2.1.0",

Screenshot 2024-04-05 at 01 45 00

Steps to reproduce

  • npx create-remix@latest
  • npm i --save-dev @remix-pwa/dev
  • npm i --save @remix-pwa/worker-runtime
  • npx remix-pwa sw

from monorepo.

ShafSpecs avatar ShafSpecs commented on September 17, 2024 2

Thanks for the PR. Moving that as well as other new stuffs to latest: #154

Docs should be updated in a few minutes

from monorepo.

ShafSpecs avatar ShafSpecs commented on September 17, 2024

Hello 👋, thanks for raising this issue

Additionally, I noticed that the entry.worker.js file hasn't been updated and still refers to old dependencies, as per the upgrade documentation:
https://github.com/remix-pwa/monorepo/blob/main/templates/app/entry.worker.ts

This isn't the template used by the remix-pwa CLI, rather its located here:
https://github.com/remix-pwa/monorepo/blob/main/packages/cli/templates/entry.worker.ts

I'm attempting to upgrade to remix/[email protected]. However, after running:

npx remix-pwa sw

I encounter the following error:

` Generating TypeScript service worker file... node:internal/process/promises:289 triggerUncaughtException(err, true /* fromPromise */); ^

[Error: ENOENT: no such file or directory, open '/home/canic/remix-echarge/templates/entry.worker.ts'] { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/canic/remix-echarge/templates/entry.worker.ts' }

Node.js v20.10.0 `

Weird, are you running it in an already created Remix project? Weird, it seems to be thrown from this line:

const templateContent = await readFile(resolve(__dirname, 'templates', 'entry.worker.ts'), 'utf-8');
, but I have no idea why it cheery picks from your directory. Would look at it too 👍

from monorepo.

ShafSpecs avatar ShafSpecs commented on September 17, 2024

Just tested this version out and it works on my PC, no problem. I am using Windows (11) and I'm running it in the root of a Remix project (the docs folder)

  • What's your OS?
  • And where is the command being ran?
  • What remix-pwa version are you utilizing?

image

from monorepo.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.