react-compound-timer icon indicating copy to clipboard operation
react-compound-timer copied to clipboard

ERROR in ./node_modules/react-compound-timer/build/models/TimeModel.js 5:11

Open Zeb1986 opened this issue 2 years ago • 7 comments

Hello everyone! Did someone have same error? I don't really understand what additional loader it want. It looks like normal js file. ERROR in ./node_modules/react-compound-timer/build/models/TimeModel.js 5:11 Module parse failed: Unexpected token (5:11) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | import { TimeModelState } from "./TimeModelState"; | export class TimeModel {

options;

| events; | internalTime; @ ./node_modules/react-compound-timer/build/instances/timeModel.js 1:0-49 16:15-24 @ ./node_modules/react-compound-timer/build/index.js

Zeb1986 avatar Aug 08 '23 08:08 Zeb1986

@Zeb1986 Hi! Are you using Typescript? If not maybe Babel? Can you share your Babel/Typescript config file?

volkov97 avatar Aug 08 '23 18:08 volkov97

@Zeb1986 also you can try version 2.0.3 - here I've updated bundler, so this may help

volkov97 avatar Aug 08 '23 22:08 volkov97

@Zeb1986 Hi! Are you using Typescript? If not maybe Babel? Can you share your Babel/Typescript config file? No i don't use TS in project, this is my babelrc { "plugins": ["transform-class-properties"] }

Zeb1986 avatar Aug 09 '23 03:08 Zeb1986

so have you tried latest version of this package?

volkov97 avatar Aug 09 '23 07:08 volkov97

well im updating my libs, and i put version ^2.0.0 in package.json i think its install last one

Zeb1986 avatar Aug 09 '23 07:08 Zeb1986

try ^2.0.4 - because the file you mentioned in description doesn't exist in this version of build, so i think you are still using 2.0.0

volkov97 avatar Aug 09 '23 08:08 volkov97

ok, thank you)

Zeb1986 avatar Aug 09 '23 08:08 Zeb1986