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

[Package]Getting warning Module not found: Error: Can't resolve './locale' #76

Closed
gyanish0 opened this issue May 18, 2022 · 9 comments
Closed
Assignees

Comments

@gyanish0
Copy link

WARNING in ./node_modules/@arifszn/gitprofile/dist/gitprofile.es.js 3079:6-41
Module not found: Error: Can't resolve './locale' in '/home/lz-12/git-user-clone/node_modules/@arifszn/gitprofile/dist'

@arifszn
Copy link
Owner

arifszn commented May 19, 2022

#53 (reply in thread)

@gyanish0
Copy link
Author

#53 (reply in thread)

No, I am not using next.js I am using simple react js

I am not able to deploy on netlify due to this warning please help me how to fix

@arifszn
Copy link
Owner

arifszn commented May 19, 2022

Provide the details of how you are using it. If you are using the package, provide the version. If possible, provide a reproducible repo.

@gyanish0
Copy link
Author

gyanish0 commented May 19, 2022

packaje version "@arifszn/gitprofile": "^2.0.5",

import React from "react";
import GitProfile from "@arifszn/gitprofile";
import "@arifszn/gitprofile/dist/style.css";
import Page from "../../../components/Page";
const config = {
github: {
username: "gyanish0", // Your GitHub org/user name. (Required)
sortBy: "stars", // stars | updated
limit: 8, // How many projects to display.
exclude: {
forks: false, // Forked projects will not be displayed if set to true.
projects: [], // These projects will not be displayed. example: ['my-project1', 'my-project2']
},
},
social: {
linkedin: "gy3582137",
twitter: "srivaani1",
facebook: "gyag",
website: "https://gyap/",
phone: "+91635",
email: "srivastavagyanish@gmail.com",
whatsapp: "https://wa.me/35",
},
skills: [
"JavaScript",
"React.js",
"Material UI",
"HTML5",
"CSS3",
"React Native",
"Figma",
],
experiences: [
{
company: "Mobiloitte Technology",
position: "Software Trainee",
from: "October 2021",
to: "March 2022",
},
{
company: "Luminoguru Pvt. Ltd.",
position: "Associate Software Engineer",
from: "April 2022",
to: "Present",
},
],
education: [
{
institution: "Dr. A.P.J. Abdul Kalam Technical University",
degree: "B.Tech",
from: "2017",
to: "2021",
},
{
institution: "Sri Krishna S S Inter College",
degree: "Higher Secondary Certificate",
from: "2015",
to: "2017",
},
{
institution: "Gyan Prakash Inter College",
degree: "Secondary School Certificate",
from: "2013",
to: "2015",
},
],
// Display blog posts from your medium or dev account. (Optional)
blog: {
source: "dev", // medium | dev
username: "gyanish0",
limit: 0, // How many posts to display. Max is 10.
},
googleAnalytics: {
// GA3 tracking id/GA4 tag id
id: "", // UA-XXXXXXXXX-X | G-XXXXXXXXXX
},
hotjar: {
id: "",
snippetVersion: 6,
},
themeConfig: {
defaultTheme: "light",

// Hides the theme change switch
// Useful if you want to support a single color mode
disableSwitch: false,

// Should use the prefers-color-scheme media-query,
// using user system preferences, instead of the hardcoded defaultTheme
respectPrefersColorScheme: true,

// Available themes. To remove any theme, exclude from here.
themes: [
  "light",
  "dark",
  "cupcake",
  "bumblebee",
  "emerald",
  "corporate",
  "synthwave",
  "retro",
  "cyberpunk",
  "valentine",
  "halloween",
  "garden",
  "forest",
  "aqua",
  "lofi",
  "pastel",
  "fantasy",
  "wireframe",
  "black",
  "luxury",
  "dracula",
  "cmyk",
  "autumn",
  "business",
  "acid",
  "lemonade",
  "night",
  "coffee",
  "winter",
  "procyon",
],

// Custom theme
customTheme: {
  primary: "#fc055b",
  secondary: "#219aaf",
  accent: "#e8d03a",
  neutral: "#2A2730",
  "base-100": "#E3E3ED",
  "--rounded-box": "3rem",
  "--rounded-btn": "3rem",
},

},
};
const GitPort = () => {
return (

    <GitProfile config={config} />

  </div>
</Page>

);
};

export default GitPort;

@gyanish0
Copy link
Author

Git Repo

https://github.com/gyanish0/git-user-clone

@arifszn arifszn self-assigned this May 19, 2022
@arifszn
Copy link
Owner

arifszn commented May 19, 2022

Found the issue. It is caused by moment. I will replace moment with an alternative. Expect an update today.

@gyanish0
Copy link
Author

Found the issue. It is caused by moment. I will replace moment with an alternative. Expect an update today.

Sure, Thank You

@arifszn arifszn changed the title i get warning [Package]Getting warning Module not found: Error: Can't resolve './locale' May 19, 2022
@arifszn
Copy link
Owner

arifszn commented May 19, 2022

Fixed in #77.

Run npm update and this should remove the warning.

@gyanish0
Copy link
Author

Thank You issue resolved

@arifszn arifszn closed this as completed May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants