coderaiser / smalltalk

Promise-based Alert, Confirm and Prompt replacement
MIT License
91 stars 20 forks source link

An error when using smalltalk with Electron #26

Open EnderCommunity opened 4 years ago

EnderCommunity commented 4 years ago

Error 4_14_2020 6_22_26 PM

EnderCommunity commented 4 years ago

These are smalltalk's module files: smalltalk 4_14_2020 6_32_19 PM

coderaiser commented 4 years ago

You should use bundled version with electron, or setup build process with webpack :). Is it helps?

EnderCommunity commented 4 years ago

Can you tell me how can I install the bundled version? please

coderaiser commented 4 years ago

@EnderAdel you can’t install bundled version, you can only download it from releases page. Anyways you can add webpack to your setup, and build it for yourself using webpack.config.js as an example. If you don’t use build system, I suggest you to add it for such case as the need of reuse some components of your application in the browser or node.js :).

EnderCommunity commented 4 years ago

it didn't work

coderaiser commented 4 years ago

Could you please provide error message you have?

LucasArgate commented 2 years ago

+1

im having the same error, do you have something new @EnderCommunity ?

coderaiser commented 2 years ago

Use:

import smalltalk from 'smalltak/bundle';

or

const smalltalk = require('smalltalk/bundle');

Since v4.1.0

Is it works for you?