Giter Club home page Giter Club logo

Comments (22)

TP-O avatar TP-O commented on May 14, 2024 3

@Jonghakseo The problem here is that __DEV__ isn't loaded yet. I recommend to use cross-env to load environment variables because it works on both windows and linux.

from chrome-extension-boilerplate-react-vite.

github-actions avatar github-actions commented on May 14, 2024

Thank you for your contribution. We will check and reply to you as soon as possible.

from chrome-extension-boilerplate-react-vite.

tonychandesign avatar tonychandesign commented on May 14, 2024

Actually just a quick followup- I ran the npm build function and it's working properly. Just wondering if that's the intended approach since it's not mentioned in the instructions. I was under the assumption that running npm dev would set up a non prod build within dist since the files show up

from chrome-extension-boilerplate-react-vite.

Jonghakseo avatar Jonghakseo commented on May 14, 2024

Have you checked if the issue persists in the latest version?

from chrome-extension-boilerplate-react-vite.

tonychandesign avatar tonychandesign commented on May 14, 2024

Yep I cloned the latest version (yesterday)

from chrome-extension-boilerplate-react-vite.

Jonghakseo avatar Jonghakseo commented on May 14, 2024

@tonychandesign

Well, seems like we've got a funny little situation here. We've noticed that Date.now occasionally returns with a 1ms discrepancy when generateKey is called repeatedly. Thank you for bringing this to our attention - it's not the prettiest fix, but we've taken care of it promptly.

from chrome-extension-boilerplate-react-vite.

dvalbuena1 avatar dvalbuena1 commented on May 14, 2024

I believe the error may still be present.
A funny thing that is happening to me is that every time I do npm dev the manifest.json file stores the key generated by the previous execution of the command.

Eg.
image

After running again the command you can see that the old css file has been deleted but the manifest.json has the same key.

image

from chrome-extension-boilerplate-react-vite.

Jonghakseo avatar Jonghakseo commented on May 14, 2024

@dvalbuena1

Hello! I'm sorry to give you this answer, but it's difficult for me to identify the issue in my environment. Can you provide more information?

from chrome-extension-boilerplate-react-vite.

dvalbuena1 avatar dvalbuena1 commented on May 14, 2024

Well, there is not much additional information to highlight. At the moment I am using the latest commit of the main.

The only change I have made so far has been the following in order to be able to run it correctly from Windows.
image

And the version of Node I am using is 16.19.1

from chrome-extension-boilerplate-react-vite.

noga-dev avatar noga-dev commented on May 14, 2024

Also on Win here. Same issue.

from chrome-extension-boilerplate-react-vite.

dvalbuena1 avatar dvalbuena1 commented on May 14, 2024

I think the problem happens because when you run the program in dev mode it first copies the manifest.json file from the public folder to the dist folder and then it generates the new manifest.json in the public folder.
For this reason the manifest.json seems to remain with the previous version.

from chrome-extension-boilerplate-react-vite.

Jonghakseo avatar Jonghakseo commented on May 14, 2024

The pull request suggested by @TP-O has been merged. Please check back to see if the issue is reproduced, and if so, we'll close the issue.

from chrome-extension-boilerplate-react-vite.

benschac avatar benschac commented on May 14, 2024

still having the same issue here, with cross-env

from chrome-extension-boilerplate-react-vite.

noga-dev avatar noga-dev commented on May 14, 2024

still having the same issue here, with cross-env

Worked for me.

from chrome-extension-boilerplate-react-vite.

tonychandesign avatar tonychandesign commented on May 14, 2024

also works for me- thanks everyone. Will keep this open for a bit for benschac

from chrome-extension-boilerplate-react-vite.

Jonghakseo avatar Jonghakseo commented on May 14, 2024

This issue has been closed for a long time with no additional information provided. If anyone encounters the same issue, you can re-open it with your running environment and error logs attached.

from chrome-extension-boilerplate-react-vite.

Jonghakseo avatar Jonghakseo commented on May 14, 2024

@all-contributors please add @TP-O for bug

from chrome-extension-boilerplate-react-vite.

allcontributors avatar allcontributors commented on May 14, 2024

@Jonghakseo

I've put up a pull request to add @TP-O! πŸŽ‰

from chrome-extension-boilerplate-react-vite.

Jonghakseo avatar Jonghakseo commented on May 14, 2024

@all-contributors please add @tonychandesign for bug

from chrome-extension-boilerplate-react-vite.

allcontributors avatar allcontributors commented on May 14, 2024

@Jonghakseo

I've put up a pull request to add @tonychandesign! πŸŽ‰

from chrome-extension-boilerplate-react-vite.

jgoedde avatar jgoedde commented on May 14, 2024

Hey. I am encountering the same issue. Just cloned the repo today. First time it ran perfectly but now even after re-cloning still having the same issue.

// Edit: Ubuntu based Linux Distr (Zorin Os 16.3),

File
/run/flatpak/doc/94d2b202/dist
Error
Could not load css 'assets/css/contentStyle16984008912.chunk.css' for content script.
Could not load manifest.

Screenshot from 2023-10-27 12-02-42

from chrome-extension-boilerplate-react-vite.

Jonghakseo avatar Jonghakseo commented on May 14, 2024

@jgoedde

That's weird, your screenshot is very different from the typical post-build output.

스크란샷 2023-11-10 α„‹α…©α„Œα…₯ᆫ 8 55 18

It could be an operating system issue.
I suspect the behavior of the path module, could you try debugging the assetFileNames part of vite.config.ts?

from chrome-extension-boilerplate-react-vite.

Related Issues (20)

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.