Open kyliedarlene opened 5 months ago
https://learning.flatironschool.com/courses/7034/pages/npm-code-along?module_item_id=637876
Line 212 of the README: "Go ahead and run npm run build."
npm run build
Received the error message:
Could not resolve "./node_modules/date-fns/esm/format/index.js"
My instructor was able to resolve the error by having me change line 3 of color-clock/index.js
FROM import format from "./node_modules/date-fns/esm/format/index.js";
TO import {format} from "date-fns";
Canvas Link
https://learning.flatironschool.com/courses/7034/pages/npm-code-along?module_item_id=637876
Concern
Line 212 of the README: "Go ahead and run
npm run build
."Additional Context
Received the error message:
Could not resolve "./node_modules/date-fns/esm/format/index.js"
Suggested Changes
My instructor was able to resolve the error by having me change line 3 of color-clock/index.js
FROM import format from "./node_modules/date-fns/esm/format/index.js";
TO import {format} from "date-fns";