Closed sAnti09 closed 5 years ago
Hi @sAnti09,
Thanks for reporting this issue.
Can you elaborate more on what you're doing and how so that's it's becomes easy to try to reproduce the behavior?
Namely:
The errors you posted aren't saying much..
Unexpected token: operator (>) [vendor-bundle-025d2a7274f90be4f253.js:130115,17]
Can you post the piece of code where it's breaking on?
Thanks.
I'm trying to build the project for production.
Yes, the errors doesn't say much. That's all I got too.
Actually I've been able to run it nicely in development using
import ShortcutButtonsPlugin from 'shortcut-buttons-flatpickr/dist/shortcut-buttons-flatpickr'
. The problem is when I build for production.
@sAnti09 can you try to import with the following path?
import { ShortcutButtonsPlugin } from 'shortcut-buttons-flatpickr/dist/types/index.d';
Yes. It doesn't work @jcsmorais.
ERROR in ./node_modules/shortcut-buttons-flatpickr/dist/types/index.d.ts
Module parse failed: /Users/james/Documents/workspace/rails/dbocl/client/node_modules/shortcut-buttons-flatpickr/dist/types/index.d.ts Unexpected token (2:7)
You may need an appropriate loader to handle this file type.
| import { Instance as Flatpickr } from 'flatpickr/dist/types/instance.d';
| export declare namespace ShortcutButtonsFlatpickr {
| type OnClickSignature = (index: number, fp: Flatpickr) => void;
@sAnti09 that might be a webpack configuration related error, have you seen this thread: https://github.com/TypeStrong/ts-loader/issues/742 ?
Hopefully it'll shed some light, if it doesn't, maybe you can provide the steps/files to reproduce the behavior you're seeing.
It works in development but has either of the ff. errors in production.
Error 1:
Error 2: